Skip to content

Commit e88d5ac

Browse files
authored
add caveats for unlinking
1 parent 3fb1211 commit e88d5ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/io.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ rename $filea, 'new-foo', :createonly; # fails if 'new-foo' exists
132132
move $fileb, '/disk2/foo'; # overwrites '/disk2/foo' if it exists
133133
move $fileb, '/disk2/foo', :createonly; # fails if '/disk2/foo' exists
134134
135-
unlink $filea; # removes $filea
136-
$fileb.IO.unlink; # removes $fileb
135+
unlink $filea; # removes $filea if it exists, fails with incorrect permissions
136+
$fileb.IO.unlink; # removes $fileb if it exists, fails with incorrect permissions
137137
138138
=end code
139139

0 commit comments

Comments
 (0)