Skip to content

Commit 8c58731

Browse files
committed
prefer multi over multi sub
1 parent 2cbf29f commit 8c58731

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Type/IO/Handle.rakudoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ L«C<.lines>|/type/IO::Handle#routine_lines» methods.
153153
=head2 routine get
154154

155155
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)
157157

158158
Reads a single line of input from the handle, removing the trailing newline
159159
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
179179
=head2 routine getc
180180

181181
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)
183183

184184
Reads a single character from the input stream. Attempting to call this method
185185
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.
434434

435435
=head2 routine words
436436

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)
438438
multi method words(IO::Handle:D: $limit = Inf, :$close --> Seq:D)
439439

440440
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␤»
760760
=head2 routine close
761761

762762
method close(IO::Handle:D: --> Bool:D)
763-
multi sub close(IO::Handle $fh)
763+
multi close(IO::Handle $fh)
764764

765765
Closes an open filehandle, returning C<True> on success. No error is thrown if the
766766
filehandle is already closed, although if you close one of the standard

0 commit comments

Comments
 (0)