Skip to content

Commit 017acd4

Browse files
committed
[io grant] Improve docs for IO::Path.slurp
1 parent 56b50fe commit 017acd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/Type/IO/Path.pod6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ entity.
472472
473473
multi method slurp(IO::Path:D: :$bin, :$enc)
474474
475-
Return the file content for this path, like L<slurp|/routine/slurp>.
475+
Read all of the file's content and return it as either L<Buf>, if C<:$bin>
476+
is C<True>, or if not, as L<Str> decoded with C<:$enc> encoding, which defaults
477+
to C<utf8>. See L«C<&open>|/routine/open» for valid values for C<:$enc>.
476478
477479
=head2 method spurt
478480

0 commit comments

Comments
 (0)