Skip to content

Commit 20a6f5e

Browse files
committed
Move comments to text and expand
1 parent dd2321d commit 20a6f5e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/Language/io.pod6

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,14 @@ 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 if it exists, fails with incorrect permissions
136-
$fileb.IO.unlink; # removes $fileb if it exists, fails with incorrect permissions
137-
135+
unlink $filea;
136+
$fileb.IO.unlink;
138137
=end code
139138
139+
The two C<unlink> sentences remove their argument if it exists, unless the
140+
user does not have the correct permissions to do so; in that case, it raises
141+
an exception.
142+
140143
=head1 Checking files and directories
141144
142145
Use the C<e> method on an C<IO::Handle> object to test whether the file or

0 commit comments

Comments
 (0)