tee: fix incorrect comment about flush

This commit is contained in:
oech3
2026-05-31 16:30:36 +09:00
committed by Daniel Hofstetter
parent e3db7f30f5
commit 44087eb515
+1 -1
View File
@@ -94,7 +94,7 @@ fn tee(options: &Options) -> Result<()> {
return Ok(());
}
// We cannot use std::io::copy here as it doesn't flush the output buffer
// don't use io::copy since content of 1 read should be immediately written for posix requirement
let res = match output.copy_unbuffered() {
// ErrorKind::Other is raised by MultiWriter when all writers
// have exited, so that copy will abort. It's equivalent to