@@ -153,7 +153,7 @@ L«C<.lines>|/type/IO::Handle#routine_lines» methods.
153
153
=head2 routine get
154
154
155
155
method get(IO::Handle:D: --> Str:D)
156
- multi sub get (IO::Handle $fh = $*ARGFILES --> Str:D)
156
+ multi get (IO::Handle $fh = $*ARGFILES --> Str:D)
157
157
158
158
Reads a single line of input from the handle, removing the trailing newline
159
159
characters (as set by L«C<.nl-in>|/routine/nl-in») if the handle's C<.chomp>
@@ -179,7 +179,7 @@ say get; # Read one line from $*ARGFILES
179
179
=head2 routine getc
180
180
181
181
method getc(IO::Handle:D: --> Str:D)
182
- multi sub getc (IO::Handle $fh = $*ARGFILES --> Str:D)
182
+ multi getc (IO::Handle $fh = $*ARGFILES --> Str:D)
183
183
184
184
Reads a single character from the input stream. Attempting to call this method
185
185
when the handle is L<in binary mode|/type/IO::Handle#method_encoding> will
@@ -434,7 +434,7 @@ C<True> or fail with an exception if it's not possible.
434
434
435
435
=head2 routine words
436
436
437
- multi sub words(IO::Handle:D $fh = $*ARGFILES, $limit = Inf, :$close --> Seq:D)
437
+ multi words(IO::Handle:D $fh = $*ARGFILES, $limit = Inf, :$close --> Seq:D)
438
438
multi method words(IO::Handle:D: $limit = Inf, :$close --> Seq:D)
439
439
440
440
Similar to L«C<Str.words>|/type/Str#routine_words», separates the handle's
@@ -760,7 +760,7 @@ say "foo".IO.open.Str; # OUTPUT: «foo»
760
760
=head2 routine close
761
761
762
762
method close(IO::Handle:D: --> Bool:D)
763
- multi sub close(IO::Handle $fh)
763
+ multi close(IO::Handle $fh)
764
764
765
765
Closes an open filehandle, returning C<True> on success. No error is thrown if the
766
766
filehandle is already closed, although if you close one of the standard
0 commit comments