File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ A HTML version of this documenation can be found at http://doc.perl6.org/
4
4
5
5
With a Rakudo 'perl6' executable in PATH, try
6
6
7
- ./bin/p6doc Str
7
+ ./bin/p6doc Type:: Str
8
8
9
9
to see the documentation for class Str, or
10
10
11
- ./bin/p6doc Str.split
11
+ ./bin/p6doc Type:: Str.split
12
12
13
13
to see the documentation for method split in class Str
14
14
Original file line number Diff line number Diff line change @@ -63,14 +63,14 @@ sub show-docs(Str $path, :$section) {
63
63
64
64
multi sub MAIN () {
65
65
say ' What documentation do you want to read?' ;
66
- say " Examples: $ * PROGRAM_NAME Str" ;
67
- say " $ * PROGRAM_NAME Str.split" ;
66
+ say " Examples: $ * PROGRAM_NAME Type:: Str" ;
67
+ say " $ * PROGRAM_NAME Type:: Str.split" ;
68
68
}
69
69
70
70
multi sub MAIN ($ docee ) {
71
71
return MAIN($ docee , : f) if defined $ docee . index (' .' ) ;
72
72
if ' index.data' . IO ~~ : e {
73
- my % data = eval slurp ' index.data' ;
73
+ my % data = EVAL slurp ' index.data' ;
74
74
if % data {$ docee } {
75
75
my $ newdoc = % data {$ docee }[0 ][0 ] ~ " ." ~ % data {$ docee }[0 ][1 ];
76
76
return MAIN($ newdoc , : f);
You can’t perform that action at this time.
0 commit comments