Skip to content

Commit

Permalink
Fix -f routine lookup in Type/independent-routines
Browse files Browse the repository at this point in the history
Because the pseudo-Type name 'independent-routines' contains the string
'routine', it was being filtered out of the results list when looking up
a routine in it, such as `p6doc -f sprintf`.
  • Loading branch information
softmoth committed May 23, 2020
1 parent 11fc253 commit e9d2556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/p6doc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ sub disambiguate-f-search($docee, %data) {
if %data{$ndocee} {
my @types = %data{$ndocee}.values>>.Str.grep({ $^v ~~ /^ 'Type' / });
@types = [gather @types.deepmap(*.take)].unique.list;
@types.=grep({!/$pref/});
@types.=grep({!/^ $pref \h/});
%found{$ndocee}.push: @types X~ $docee;
}
}
Expand Down

0 comments on commit e9d2556

Please sign in to comment.