Skip to content

Commit ac2175a

Browse files
committed
1 parent e3555ea commit ac2175a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/Type/IO/Path.pod

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ Returns the full path as a string.
102102
103103
method Str(IO::Path:D:)
104104
105-
Returns the full path as a string. If the path object was constructed from a
106-
single string, the method Str will return that string.
105+
Returns the complete text that was used to create the path as a string, whether
106+
it was given as a single string or as named arguments.
107+
108+
say IO::Path.new(basename => "foo", dirname => "/bar").Str # /bar/foo
109+
say IO::Path.new("/bar/foo").Str # /bar/foo
107110
108111
=head2 method open
109112

0 commit comments

Comments
 (0)