Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed a broken code snippet
  • Loading branch information
Jan-Olof Hendig committed Jun 3, 2016
1 parent 57e3a6a commit 8eaa110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Parameter.pod
Expand Up @@ -124,8 +124,8 @@ Returns C<True> for parameters that capture the rest of the argument list into
a single L<Capture|/type/Capture> object.
sub how_many_extra_positionals($!, |capture) { capture.elems.say }
how_many_extra_positionals(0,1,2,3) #-> 3
say &how_many_positionals.signature.params[1].capture; #-> True
how_many_extra_positionals(0,1,2,3); #-> 3
say &how_many_extra_positionals.signature.params[1].capture; #-> True
Like raw parameters, Capture parameters do not force any context on the
values bound to them, which is why their sigils are only used in
Expand Down

0 comments on commit 8eaa110

Please sign in to comment.