Skip to content

Commit a881041

Browse files
committed
Fixes the last "return Any"
By looking at the actual implementation. Revised also other "returns empty list". It actually returns an empty list in many cases, so it's OK. I haven't seen any other remainint, so provisionally closes #1731. If anyone finds a particular description that's wrong, I would rather have an specific open issue for that.
1 parent f50db43 commit a881041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Any.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ Defined As:
553553
multi method keys(Any:U: --> List)
554554
multi method keys(Any:D: --> List)
555555
556-
For defined L<Any> returns its L<keys>, otherwise returns an empty list.
556+
For defined L<Any> returns its L<keys> after calling `list` on it, otherwise calls `list` and returns it.
557557
558558
say Any.keys; # OUTPUT: «()␤»
559559
@@ -874,7 +874,7 @@ Defined As:
874874
875875
method tree(--> Any)
876876
877-
Returns Any.
877+
Returns the class if it's undefined or if it's not iterable, returns the result of applying the `tree` method to the elements if it's `Iterable`.
878878
879879
say Any.tree; # OUTPUT: «Any␤»
880880

0 commit comments

Comments
 (0)