[Ada] Adjust List_Length description
gcc/ada/ * nlists.ads (List_Length): Adapt comment to match the behaviour.
This commit is contained in:
parent
5485d0e556
commit
ba344f1ba6
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue