Skip to content

Commit

Permalink
[parser/actions.pm] aligned documentation with code
Browse files Browse the repository at this point in the history
s/or/and/; The code has a && in the corresponding place, which makes much
more sense.
  • Loading branch information
Carl Masak committed Nov 14, 2009
1 parent d04cce9 commit 7347ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/actions.pm
Expand Up @@ -840,7 +840,7 @@ method method_def($/) {
);
$block[0].unshift(PAST::Var.new( :name('__CANDIDATE_LIST__'), :scope('lexical'), :isdecl(1) ));

# Add *%_ parameter if there's no other named slurpy or the package isn't hidden.
# Add *%_ parameter if there's no other named slurpy and the package isn't hidden.
my $need_slurpy_hash := !$block<signature>.has_named_slurpy();
if $need_slurpy_hash && !package_has_trait('hidden') {
$block[0].push(PAST::Var.new( :name('%_'), :scope('lexical'), :isdecl(1), :viviself('Perl6Hash') ));
Expand Down

0 comments on commit 7347ec0

Please sign in to comment.