Skip to content

Commit 2352476

Browse files
committed
Rename arg in examples to better indicate its purpose
1 parent 4ba026a commit 2352476

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Type/IO/Handle.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ Removes a L«C<lock>|/routine/lock» from the filehandle.
213213
214214
Defined as:
215215
216-
multi sub words(IO::Handle:D $fh = $*ARGFILES, $count = Inf, :$close --> Seq:D)
217-
multi method words(IO::Handle:D: $count = Inf, :$close --> Seq:D)
216+
multi sub words(IO::Handle:D $fh = $*ARGFILES, $limit = Inf, :$close --> Seq:D)
217+
multi method words(IO::Handle:D: $limit = Inf, :$close --> Seq:D)
218218
219219
Similar to L«C<Str.words>|/type/Str#routine_words», separates the handle's
220220
stream on contiguous chunks of whitespace (as defined
221221
by Unicode) and returns a L<Seq> of the resultant "words." Takes an optional
222-
C<$count> argument that can be a non-negative L<Int>, C<Inf>, or L<Whatever>
223-
(which is interpreted to mean C<Inf>), to indicate only up-to C<$count> words
222+
C<$limit> argument that can be a non-negative L<Int>, C<Inf>, or L<Whatever>
223+
(which is interpreted to mean C<Inf>), to indicate only up-to C<$limit> words
224224
must be returned. If L<Bool> C<:$close> named argument is set to C<True>,
225225
will automatically close the handle when the returned L<Seq> is exhausted.
226226
Subroutine form defaults to

0 commit comments

Comments
 (0)