Skip to content

Commit cbc0c78

Browse files
committed
typo
1 parent f8358bf commit cbc0c78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uu/cat/src/splice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ pub(super) fn write_fast_using_splice<R: FdReadable, S: AsRawFd + AsFd>(
3333
{
3434
loop {
3535
match splice(&handle.reader, &write_fd, MAX_ROOTLESS_PIPE_SIZE) {
36+
Ok(1..) => {},
3637
Ok(0) => return Ok(false),
37-
Ok(_) => {}
3838
Err(_) => return Ok(true),
3939
}
4040
}
4141
} else {
42-
// output is not pipe. Needs hihi cost pipe as broker to use splice()
42+
// output is not pipe. Needs broker to use splice() which is high cost for small files
4343
let (pipe_rd, pipe_wr) = pipe()?;
4444
loop {
4545
match splice(&handle.reader, &pipe_wr, MAX_ROOTLESS_PIPE_SIZE) {

0 commit comments

Comments
 (0)