From: Viljar Indus <[email protected]>

Single space comment checks are activated by -gnatyC whereas
double space comment checks are activated by -gnatyc.

This patch uses the correct switch name for style warnings
triggered by single space comment checks.

gcc/ada/ChangeLog:

        * styleg.adb (Check_Comment): use correct switch name in
        error message.

Tested on x86_64-pc-linux-gnu, committed on master.

---
 gcc/ada/styleg.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/styleg.adb b/gcc/ada/styleg.adb
index 8c9095574bb..f157ec22955 100644
--- a/gcc/ada/styleg.adb
+++ b/gcc/ada/styleg.adb
@@ -499,7 +499,7 @@ package body Styleg is
                     or else Style_Check_Comments_Spacing = 1
                   then
                      Error_Msg -- CODEFIX
-                       ("(style) space required?c?", Scan_Ptr + 2);
+                       ("(style) space required?C?", Scan_Ptr + 2);
                   else
                      Error_Msg -- CODEFIX
                        ("(style) two spaces required?c?", Scan_Ptr + 2);
-- 
2.53.0

Reply via email to