diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2020-12-11 00:42:22 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-04-28 05:38:19 -0400 |
commit | ba344f1ba6948ded21ba3bda4d0f7460eee2862b (patch) | |
tree | 84b64f2d300e20e5bf1bb5787c3251ab5e4ed813 /gcc/ada/nlists.ads | |
parent | 5485d0e5569037c0bdc04192e174a048f7d69a61 (diff) | |
download | gcc-ba344f1ba6948ded21ba3bda4d0f7460eee2862b.zip gcc-ba344f1ba6948ded21ba3bda4d0f7460eee2862b.tar.gz gcc-ba344f1ba6948ded21ba3bda4d0f7460eee2862b.tar.bz2 |
[Ada] Adjust List_Length description
gcc/ada/
* nlists.ads (List_Length): Adapt comment to match the
behaviour.
Diffstat (limited to 'gcc/ada/nlists.ads')
-rw-r--r-- | gcc/ada/nlists.ads | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/nlists.ads b/gcc/ada/nlists.ads index 169c8e5..c006131 100644 --- a/gcc/ada/nlists.ads +++ b/gcc/ada/nlists.ads @@ -146,9 +146,9 @@ package Nlists is -- No_List. (No_List is not considered to be the same as an empty list). function List_Length (List : List_Id) return Nat; - -- Returns number of items in the given list. It is an error to call - -- this function with No_List (No_List is not considered to be the same - -- as an empty list). + -- Returns number of items in the given list. If called on No_List it + -- returns 0, even though No_List is not considered to be the same as an + -- empty list. function Next (Node : Node_Or_Entity_Id) return Node_Or_Entity_Id; pragma Inline (Next); |