summaryrefslogtreecommitdiff
path: root/src/uniq.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-08-22 11:34:56 +0000
committerJim Meyering <jim@meyering.net>1999-08-22 11:34:56 +0000
commit19a165cc9c0606c051b12498b7a56303c688212e (patch)
treeb100a8f4b58261c5e25cdb81f28cb87e666dcd98 /src/uniq.c
parent7a7ef5ff5befba0d3822b3ab301736fcfc2d0a68 (diff)
downloadcoreutils-19a165cc9c0606c051b12498b7a56303c688212e.tar.xz
tweak comment
Diffstat (limited to 'src/uniq.c')
-rw-r--r--src/uniq.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/uniq.c b/src/uniq.c
index 9f50d7f4e..3639d9315 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -238,10 +238,12 @@ check_file (const char *infile, const char *outfile)
initbuffer (thisline);
initbuffer (prevline);
- /* This duplication is to distinguish the common case (in which none of the
- following options has been specified: --count, -repeated, --all-repeated,
- --unique) from the others. In the common case, we can output each new
- line right away, without waiting to see if the next one is different). */
+ /* The duplication in the following `if' and `else' blocks is an
+ optimization to distinguish the common case (in which none of
+ the following options has been specified: --count, -repeated,
+ --all-repeated, --unique) from the others. In the common case,
+ this optimization lets uniq output each different line right away,
+ without waiting to see if the next one is different. */
if (mode == output_all && countmode == count_none)
{