Skip to content

Commit

Permalink
Some minor changes for bin/p6doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed May 12, 2016
1 parent b70d7a3 commit 098de55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/p6doc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ constant DEBUG = %*ENV<P6DOC_DEBUG>;
constant INTERACT = %*ENV<P6DOC_INTERACT>;

sub findbin() returns Str {
$*PROGRAM-NAME.subst(rx{<-[/\\]>+$}, '');
IO::Path.new($*PROGRAM-NAME).dirname ~ '/';
}

constant INDEX = findbin() ~ 'index.data';
Expand Down Expand Up @@ -58,7 +58,7 @@ sub show-docs(Str $path, :$section, :$no-pager) {
say "No Pod found in $path";
return;
}
my $doc-command-str = "$*EXECUTABLE-NAME";
my $doc-command-str = $*EXECUTABLE-NAME;
if $section.defined {
%*ENV<PERL6_POD_HEADING> = $section;
my $i = findbin() ~ '../lib';
Expand Down Expand Up @@ -150,7 +150,7 @@ sub disambiguate-f-search($docee, %data) {
}

my $final-docee;
my $total-found = [+] %found.values.map( *.elems );
my $total-found = %found.values.map( +* ).sum;
if ! $total-found {
say "No documentation found for a routine named '$docee'";
exit 2;
Expand Down

0 comments on commit 098de55

Please sign in to comment.