Skip to content

Commit 9a84275

Browse files
authored
Explain why we're not explicitly unlocking a handle
1 parent 995dd52 commit 9a84275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Type/IO/Handle.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ L«C<unlock>|/routine/unlock».
376376
given "foo".IO.open(:w) {
377377
.lock;
378378
.spurt: "I ♥ Perl 6!";
379-
.close;
379+
.close; # closing the handle unlocks it; we could also use `unlock` method for that
380380
}
381381
382382
# Reader

0 commit comments

Comments
 (0)