]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Balance parentheses in comments about allocators
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 5 Jan 2022 15:40:44 +0000 (16:40 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 11 Jan 2022 13:24:48 +0000 (13:24 +0000)
gcc/ada/

* sem_ch4.adb (Analyze_Allocator): Fix comment.
* sem_eval.ads (Compile-Time Known Values): Likewise.

gcc/ada/sem_ch4.adb
gcc/ada/sem_eval.ads

index 42547e3b2741b42b8c2b2bcd4bebb508f6f5de1a..c916c215fb8a98198edd247c1483b30c02960ddc 100644 (file)
@@ -515,7 +515,7 @@ package body Sem_Ch4 is
             --  parameters. Note that this is now a static error even if the
             --  subprogram is not the main program (this is a change, in an
             --  earlier version only the main program was affected, and the
-            --  check had to be done in the binder.
+            --  check had to be done in the binder).
 
             if Nkind (P) = N_Subprogram_Body
               and then Nkind (Parent (P)) = N_Compilation_Unit
@@ -563,7 +563,7 @@ package body Sem_Ch4 is
          Find_Type (Subtype_Mark (E));
 
          --  Analyze the qualified expression, and apply the name resolution
-         --  rule given in  4.7(3).
+         --  rule given in 4.7(3).
 
          Analyze (E);
          Type_Id := Etype (E);
index eb919f17cb479d6793c8bbc7caf719b2b86a8303..4fdd5a1fae6cbb19d65763d5344b7bf846992882 100644 (file)
@@ -113,7 +113,7 @@ package Sem_Eval is
    --  The expression 'C' is not static in the technical RM sense, but for many
    --  simple record types, the size is in fact known at compile time. When we
    --  are trying to perform compile time constant folding (for instance for
-   --  expressions like C + 1, Is_Static_Expression or Is_OK_Static_Expression
+   --  expressions like C + 1), Is_Static_Expression or Is_OK_Static_Expression
    --  are not the right functions to test if folding is possible. Instead, we
    --  use Compile_Time_Known_Value. All static expressions that do not raise
    --  constraint error (i.e. those for which Is_OK_Static_Expression is true)