Skip to content

Commit 36c35e2

Browse files
committed
Rename $c -> $pod-element in find-definitions()
This better represents (I believe) the variable's purpose.
1 parent b5b236d commit 36c35e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

htmlify.p6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,14 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
313313
my int $len = +@c;
314314
while $i < $len {
315315
NEXT {$i = $i + 1}
316-
my $c := @c[$i];
317-
next unless $c ~~ Pod::Heading;
318-
return $i if $c.level <= $min-level;
316+
my $pod-element := @c[$i];
317+
next unless $pod-element ~~ Pod::Heading;
318+
return $i if $pod-element.level <= $min-level;
319319

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

0 commit comments

Comments
 (0)