Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct some capturing syntax.
  • Loading branch information
jnthn committed Nov 18, 2011
1 parent 04961ff commit 65eb2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S05-capture/named.t
Expand Up @@ -29,7 +29,7 @@ Testing named capture variables nested inside each other. This doesn't appear to
#?rakudo todo '$alias = <other>'
{
my $not_really_a_mammal;
my regex fishy2 { $not_really_a_mammal = (.*)shark };
my regex fishy2 { $<not_really_a_mammal> = (.*)shark };
"whaleshark" ~~ m/<fishy2>/;
is($/<fishy2><not_really_a_mammal>, "whale", "named rule named capture");
is($<fishy2><not_really_a_mammal>, "whale", "named rule named capture with abbreviated variable");
Expand Down

0 comments on commit 65eb2c3

Please sign in to comment.