]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Fix two typos
authorGary Dismukes <dismukes@adacore.com>
Fri, 3 Apr 2020 18:19:43 +0000 (14:19 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 16 Jun 2020 13:07:13 +0000 (09:07 -0400)
2020-06-16  Gary Dismukes  <dismukes@adacore.com>

gcc/ada/

* sem_ch6.adb: Add closing paren in a comment.
* sem_util.adb: Correct comment typo (aggreate => aggregate).

gcc/ada/sem_ch6.adb
gcc/ada/sem_util.adb

index 8ff017a85725608e6b39b2dc7eea4e461da88628..188ee7597ddd7c509b3460909122711847355d16 100644 (file)
@@ -1269,7 +1269,7 @@ package body Sem_Ch6 is
          --  only once, i.e. not to the simple return statement generated at
          --  the end of its expansion because, prior to leaving the function,
          --  the accessibility level of the return object changes to be a level
-         --  determined by the point of call (RM 3.10.2(10.8/3).
+         --  determined by the point of call (RM 3.10.2(10.8/3)).
 
          if Ada_Version >= Ada_2005
            and then Ekind (R_Type) = E_Anonymous_Access_Type
index dd9ab2ea6d6a870a5bab996afba710e005a2a93a..366eaff37466e7ab173e86e9e08b06d7f0d5d26e 100644 (file)
@@ -17042,7 +17042,7 @@ package body Sem_Util is
                return Ada_Version >= Ada_2012
                  and then Is_Object_Reference (Expression (N));
 
-            --  In Ada 95 an aggreate is an object reference
+            --  In Ada 95 an aggregate is an object reference
 
             when N_Aggregate =>
                return Ada_Version >= Ada_95;