mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
yes: correct a typo (#1727)
Improve readability by fixing an inadvertent rename during a performance
enhancement (b46e228
).
This commit is contained in:
parent
05d8cc59c4
commit
e2b58051e6
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ fn prepare_buffer<'a>(input: &'a str, _buffer: &'a mut [u8; BUF_SIZE]) -> &'a [u
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn exec(bytes: &[u8]) {
|
pub fn exec(bytes: &[u8]) {
|
||||||
let mut stdin_raw = io::stdout();
|
let mut stdout_raw = io::stdout();
|
||||||
let mut writer = ZeroCopyWriter::with_default(&mut stdin_raw, |stdin| stdin.lock());
|
let mut writer = ZeroCopyWriter::with_default(&mut stdout_raw, |stdout| stdout.lock());
|
||||||
loop {
|
loop {
|
||||||
// TODO: needs to check if pipe fails
|
// TODO: needs to check if pipe fails
|
||||||
writer.write_all(bytes).unwrap();
|
writer.write_all(bytes).unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue