]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Fix typo in comment of Get_Index_Subtype
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 7 May 2020 13:52:20 +0000 (15:52 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 6 Jul 2020 11:35:08 +0000 (07:35 -0400)
gcc/ada/

* exp_util.ads (Get_Index_Subtype): Fix duplicate "Last".

gcc/ada/exp_util.ads

index e30a4f3bbf71368872e062e7eea2fae9ac7a6018..c0a7e9e3fa86fe73fdb922b904311e2543385ea6 100644 (file)
@@ -725,7 +725,7 @@ package Exp_Util is
    --  (e.g. no access check required if N_Op_Ne Null).
 
    function Get_Index_Subtype (N : Node_Id) return Entity_Id;
-   --  Used for Last, Last, and Length, when the prefix is an array type.
+   --  Used for First, Last, and Length, when the prefix is an array type.
    --  Obtains the corresponding index subtype.
 
    function Get_Stream_Size (E : Entity_Id) return Uint;