Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix incorrect specification of implicit $_ in blocks.

git-svn-id: http://svn.pugscode.org/pugs/docs/Perl6/Spec@27784 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit 5b091404c13fe16a9fd87745a96859c7bc366029 1 parent 7cca99e
pmichaud authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  S04-control.pod
View
2  S04-control.pod
@@ -44,7 +44,7 @@ without placeholder arguments that uses C<$_>
(either explicitly or implicitly) is treated as though C<$_> were a
formal parameter:
- $func = { .print if $_ }; # Same as: $func = -> $_ { .print if $_ };
+ $func = { .print if $_ }; # Same as: $func = <-> $_ { .print if $_ };
$func("printme");
In any case, all formal parameters are the equivalent of C<my> variables
Please sign in to comment.
Something went wrong with that request. Please try again.