]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tweak comment
authorJim Meyering <jim@meyering.net>
Sun, 22 Aug 1999 11:34:56 +0000 (11:34 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 22 Aug 1999 11:34:56 +0000 (11:34 +0000)
src/uniq.c

index 9f50d7f4e1ee986ccb02d5a5a9021a297946f2f2..3639d93155fe75377dbe2374515e0376f90082a9 100644 (file)
@@ -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)
     {