Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename $c -> $pod-element in find-definitions()
This better represents (I believe) the variable's purpose.
  • Loading branch information
Paul Cochrane committed Feb 14, 2015
1 parent b5b236d commit 36c35e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htmlify.p6
Expand Up @@ -313,14 +313,14 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
my int $len = +@c;
while $i < $len {
NEXT {$i = $i + 1}
my $c := @c[$i];
next unless $c ~~ Pod::Heading;
return $i if $c.level <= $min-level;
my $pod-element := @c[$i];
next unless $pod-element ~~ Pod::Heading;
return $i if $pod-element.level <= $min-level;

# Is this new header a definition?
# If so, begin processing it.
# If not, skip to the next heading.
my @header := $c.contents[0].contents;
my @header := $pod-element.contents[0].contents;
my @definitions; # [subkind, name]
my $unambiguous = False;
given @header {
Expand Down

0 comments on commit 36c35e2

Please sign in to comment.