]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
stdio-common/printf-prs.c: Reword comment
authorAlejandro Colomar \(man-pages\) <alx.manpages@gmail.com>
Wed, 24 Mar 2021 18:29:16 +0000 (19:29 +0100)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 31 Mar 2021 20:20:18 +0000 (17:20 -0300)
'this' can be understood as the current parameter, but in this case it
is meaning the other one, the one holding the width/precission.

'it' better describes that parameter, differentiating it from the
one corresponding to the current specifier.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
stdio-common/printf-prs.c

index 1d4e00553dc6d93002d552b51abbb7f7816202b9..8ebf09a0a956a138635306bb9bf3635b1f1b6ff1 100644 (file)
@@ -72,11 +72,11 @@ parse_printf_format (const char *fmt, size_t n, int *argtypes)
       /* Parse this spec.  */
       nargs += __parse_one_specmb (f, nargs, &spec, &max_ref_arg);
 
-      /* If the width is determined by an argument this is an int.  */
+      /* If the width is determined by an argument, it is an int.  */
       if (spec.width_arg != -1 && (size_t) spec.width_arg < n)
        argtypes[spec.width_arg] = PA_INT;
 
-      /* If the precision is determined by an argument this is an int.  */
+      /* If the precision is determined by an argument, it is an int.  */
       if (spec.prec_arg != -1 && (size_t) spec.prec_arg < n)
        argtypes[spec.prec_arg] = PA_INT;