Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  S04-control.pod
2  S04-control.pod
Source Rendered
@@ -44,7 +44,7 @@ without placeholder arguments that uses C<$_>
44 44 (either explicitly or implicitly) is treated as though C<$_> were a
45 45 formal parameter:
46 46
47   - $func = { .print if $_ }; # Same as: $func = -> $_ { .print if $_ };
  47 + $func = { .print if $_ }; # Same as: $func = <-> $_ { .print if $_ };
48 48 $func("printme");
49 49
50 50 In any case, all formal parameters are the equivalent of C<my> variables

0 comments on commit 5b09140

Please sign in to comment.
Something went wrong with that request. Please try again.