Skip to content

Commit

Permalink
Fix IO::Handle.flush() code exampe
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbkr committed Jul 9, 2019
1 parent 17a102a commit 9b2832b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Type/IO/Handle.pod6
Expand Up @@ -857,12 +857,12 @@ Defined as:
Will flush the handle, writing any of the buffered data. Returns C<True>
on success; otherwise, L<fails|/routine/fail> with C<X::IO::Flush>.
=begin code :skip-test<compile time error>
=begin code
given "foo".IO.open: :w {
LEAVE .close;
$fh.print: 'something';
.print: 'something';
'foo'.IO.slurp.say; # (if the data got buffered) OUTPUT: «␤»
$fh.flush; # flush the handle
.flush; # flush the handle
'foo'.IO.slurp.say; # OUTPUT: «something␤»
}
=end code
Expand Down

0 comments on commit 9b2832b

Please sign in to comment.