Skip to content

Commit 60b9227

Browse files
committed
[io grant] Change return value for mkdir
Per rakudo/rakudo@c01ebea0a0
1 parent 47b0526 commit 60b9227

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/Type/IO/Path.pod6

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,12 @@ only C<:d> is set to C<True>.
518518
519519
=head2 routine mkdir
520520
521-
method mkdir(IO::Path:D: Int() $mode = 0o777 --> Bool:D)
522-
sub mkdir( IO() $path, Int() $mode = 0o777 --> Bool:D)
521+
method mkdir(IO::Path:D: Int() $mode = 0o777 --> IO::Path:D)
522+
sub mkdir( IO() $path, Int() $mode = 0o777 --> IO::Path:D)
523523
524524
Creates a new directory. See L«C<mode>|/routine/mode» for explanation and
525-
valid values for C<$mode>. Returns C<True> on success;
525+
valid values for C<$mode>. Returns the L<IO::Path> object pointing to
526+
the newly created directory on success;
526527
L<fails|/routine/fail> with L<X::IO::Mkdir> if directory cannot be created.
527528
528529
Creates parent directories, as needed. That is, C<mkdir "foo/bar"> will

0 commit comments

Comments
 (0)