Skip to content

Commit e2b5805

Browse files
authored
yes: correct a typo (#1727)
Improve readability by fixing an inadvertent rename during a performance enhancement (b46e228).
1 parent 05d8cc5 commit e2b5805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uu/yes/src/yes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ fn prepare_buffer<'a>(input: &'a str, _buffer: &'a mut [u8; BUF_SIZE]) -> &'a [u
7777
}
7878

7979
pub fn exec(bytes: &[u8]) {
80-
let mut stdin_raw = io::stdout();
81-
let mut writer = ZeroCopyWriter::with_default(&mut stdin_raw, |stdin| stdin.lock());
80+
let mut stdout_raw = io::stdout();
81+
let mut writer = ZeroCopyWriter::with_default(&mut stdout_raw, |stdout| stdout.lock());
8282
loop {
8383
// TODO: needs to check if pipe fails
8484
writer.write_all(bytes).unwrap();

0 commit comments

Comments
 (0)