Skip to content

Commit 7aed8d4

Browse files
committed
refactor(stty): translate Japanese comments to English
- Updated error handling comment to describe GNU stty behavior more clearly for English readers. - Translated comment on termios cloning to explain preservation of platform-specific fields.
1 parent 24fa079 commit 7aed8d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uu/stty/src/stty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ fn stty(opts: &Options) -> UResult<()> {
282282
restored_from_save = Some(termios);
283283
settings_iter = Box::new(rest.iter().copied());
284284
}
285-
// GNU stty は先頭が save 形式っぽいのにパースできなければ即エラーにする
285+
// GNU stty errors immediately when the first argument looks like save format but cannot be parsed
286286
Err(e) if first.contains(':') => return Err(e),
287287
Err(_) => {
288288
settings_iter = Box::new(args.iter().map(|s| &**s));
@@ -749,7 +749,7 @@ fn parse_save_format(s: &str, base: &Termios) -> Result<Termios, Box<dyn UError>
749749
// Remaining segments are control_chars.
750750
let cc_hex = &parts[4..];
751751

752-
// base で渡されたデバイスの termios をコピーし、プラットフォーム依存フィールドを保持する
752+
// Clone the passed-in device termios to preserve platform-specific fields
753753
let mut termios = base.clone();
754754

755755
termios.input_flags = InputFlags::from_bits_truncate(iflags_bits);

0 commit comments

Comments
 (0)