https://gcc.gnu.org/g:f7738c36710f8084e24cbb1d92acf3b6e5e83ea9

commit r15-9348-gf7738c36710f8084e24cbb1d92acf3b6e5e83ea9
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Apr 9 22:07:33 2025 +0200

    pretty-print: Fix format specifier description
    
    I've noticed we talk about %Ns even when that isn't supported and
    we actually only support %.Ns which the comment describes.
    
    2025-04-09  Jakub Jelinek  <ja...@redhat.com>
    
            * pretty-print.cc (pretty_printer::format): Use %.Ns instead of
            %Ns in function comment.

Diff:
---
 gcc/pretty-print.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/pretty-print.cc b/gcc/pretty-print.cc
index 79c7bc2b6625..abd6c0b528f4 100644
--- a/gcc/pretty-print.cc
+++ b/gcc/pretty-print.cc
@@ -1640,7 +1640,7 @@ push_back_any_text (pp_token_list *tok_list,
    %@: diagnostic_event_id_ptr, for which event_id->known_p () must be true.
    %.*s: a substring the length of which is specified by an argument
         integer.
-   %Ns: likewise, but length specified as constant in the format string.
+   %.Ns: likewise, but length specified as constant in the format string.
    Flag 'q': quote formatted text (must come immediately after '%').
    %Z: Requires two arguments - array of int, and len. Prints elements
    of the array.

Reply via email to