From a97b574fec16ad40d5f3ffc97b9e256d83c36718 Mon Sep 17 00:00:00 2001 From: zhitkoff Date: Sat, 2 Dec 2023 16:52:04 -0500 Subject: [PATCH] wc: comments --- src/uu/wc/src/count_fast.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/wc/src/count_fast.rs b/src/uu/wc/src/count_fast.rs index d7875933d..487893b9f 100644 --- a/src/uu/wc/src/count_fast.rs +++ b/src/uu/wc/src/count_fast.rs @@ -128,8 +128,8 @@ pub(crate) fn count_bytes_fast(handle: &mut T) -> (usize, Opti // Since the input stream from file is treated as continuous across both commands inside (). // In cases like this, due to `<` redirect, the `stat.st_mode` would report input as a regular file // and `stat.st_size` would report the size of file on disk - // and NOT the remaining number of bytes in the input stream. - // However, the raw file descriptor in this situation would be equal to `0` + // and NOT the remaining number of bytes in the input stream. + // However, the raw file descriptor in this situation would be equal to `0` // for STDIN in both invocations. // Therefore we cannot rely of `st_size` here and should fall back on full read. if fd > 0 && (stat.st_mode as libc::mode_t & S_IFREG) != 0 && stat.st_size > 0 {