[gcc r11-5306] [Ada] Fix minor typos in comments

Pierre-Marie de Rodat pmderodat@gcc.gnu.org
Tue Nov 24 10:19:10 GMT 2020


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

commit r11-5306-gcb9d41eb252c44feeda1b137aca593a521b2b1a7
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Thu Oct 8 23:39:07 2020 +0200

    [Ada] Fix minor typos in comments
    
    gcc/ada/
    
            * checks.adb (Apply_Access_Check): Remove unbalanced paren.
            * exp_attr.adb (Expand_N_Attribute_Reference): Fix typo in
            comment.

Diff:
---
 gcc/ada/checks.adb   | 2 +-
 gcc/ada/exp_attr.adb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/ada/checks.adb b/gcc/ada/checks.adb
index b389da5accb..1914fc3024a 100644
--- a/gcc/ada/checks.adb
+++ b/gcc/ada/checks.adb
@@ -535,7 +535,7 @@ package body Checks is
       --  We do not need checks if we are not generating code (i.e. the
       --  expander is not active). This is not just an optimization, there
       --  are cases (e.g. with pragma Debug) where generating the checks
-      --  can cause real trouble).
+      --  can cause real trouble.
 
       if not Expander_Active then
          return;
diff --git a/gcc/ada/exp_attr.adb b/gcc/ada/exp_attr.adb
index 40de27b86bc..70e13359a7e 100644
--- a/gcc/ada/exp_attr.adb
+++ b/gcc/ada/exp_attr.adb
@@ -6224,7 +6224,7 @@ package body Exp_Attr is
                   then
                      Set_Attribute_Name (N, Name_Object_Size);
 
-                  --  In all other cases, Size and VADS_Size are the sane
+                  --  In all other cases, Size and VADS_Size are the same
 
                   else
                      Set_Attribute_Name (N, Name_Size);


More information about the Gcc-cvs mailing list