From 9b2832b869f630995b8697aad437faa0166d216d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20B=C3=B6ker?= <6307078+patzim@users.noreply.github.com> Date: Tue, 9 Jul 2019 09:44:00 +0200 Subject: [PATCH] Fix IO::Handle.flush() code exampe --- doc/Type/IO/Handle.pod6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/Type/IO/Handle.pod6 b/doc/Type/IO/Handle.pod6 index 93c8c9db0..3f7fc1448 100644 --- a/doc/Type/IO/Handle.pod6 +++ b/doc/Type/IO/Handle.pod6 @@ -857,12 +857,12 @@ Defined as: Will flush the handle, writing any of the buffered data. Returns C on success; otherwise, L with C. -=begin code :skip-test +=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