Skip to content

Commit

Permalink
yes: correct a typo (#1727)
Browse files Browse the repository at this point in the history
Improve readability by fixing an inadvertent rename during a performance
enhancement (b46e228).
  • Loading branch information
drocco007 authored Feb 16, 2021
1 parent 05d8cc5 commit e2b5805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uu/yes/src/yes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ fn prepare_buffer<'a>(input: &'a str, _buffer: &'a mut [u8; BUF_SIZE]) -> &'a [u
}

pub fn exec(bytes: &[u8]) {
let mut stdin_raw = io::stdout();
let mut writer = ZeroCopyWriter::with_default(&mut stdin_raw, |stdin| stdin.lock());
let mut stdout_raw = io::stdout();
let mut writer = ZeroCopyWriter::with_default(&mut stdout_raw, |stdout| stdout.lock());
loop {
// TODO: needs to check if pipe fails
writer.write_all(bytes).unwrap();
Expand Down

0 comments on commit e2b5805

Please sign in to comment.