Skip to content

Commit 6b3ce78

Browse files
authored
Mention ordering from dir is arbitrary
Question came up in raku-beginner Discord about why `dir` was returning files in a "strange order", and it was noted the docs do not mention this.
1 parent 16a72e5 commit 6b3ce78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Type/IO/Path.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ Returns the contents of a directory as a lazy list of C<IO::Path> objects
466466
representing relative paths, filtered by
467467
L<smartmatching|/language/operators#infix_~~> their names (as strings) against
468468
the C<:test> parameter. The path of returned files will be absolute or
469-
relative depending on what C<$path> is.
469+
relative depending on what C<$path> is, and are returned in an arbitrary order.
470470

471471
Since the tests are performed against C<Str> arguments, not C<IO>, the tests are
472472
executed in the C<$*CWD>, instead of the target directory. When testing against

0 commit comments

Comments
 (0)