From e2b58051e6c414ae813f3c0834a51e85e43403be Mon Sep 17 00:00:00 2001 From: Daniel Rocco Date: Tue, 16 Feb 2021 17:40:23 -0500 Subject: [PATCH] yes: correct a typo (#1727) Improve readability by fixing an inadvertent rename during a performance enhancement (b46e228). --- src/uu/yes/src/yes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/yes/src/yes.rs b/src/uu/yes/src/yes.rs index 7932a1486..1fc2d92bc 100644 --- a/src/uu/yes/src/yes.rs +++ b/src/uu/yes/src/yes.rs @@ -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();