File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ Fill the documentation file `doc/Type/MyFunnyRole.pod6` like this:
82
82
83
83
=head2 method do-it
84
84
85
- method do-it(Int $how-often) returns Nil:D
85
+ method do-it(Int $how-often --> Nil:D)
86
86
87
87
Method description here
88
88
89
- MyFunnyRole.do-it(2); # example output
89
+ MyFunnyRole.do-it(2); # OUTPUT: « example output»
90
90
91
91
92
92
When documenting a pair of a sub and a method which both do the same thing, the
@@ -96,6 +96,15 @@ more lines with the signatures. Other allowed words instead of `method` are
96
96
` term ` . If you wish to hide a heading from any index prefix it with the empty
97
97
comment ` Z<> ` .
98
98
99
+ When providing a code example result or output, use this style:
100
+
101
+ # For the result of an expression.
102
+ 1 + 2; # RESULT: «3»
103
+ # For the output.
104
+ say 1 + 3; # OUTPUT: «3»
105
+ # For the explanatory comment
106
+ do-work; # We call do-work sub
107
+
99
108
## Running tests
100
109
101
110
Any contributions should pass the ` make test ` target. This insures basic
You can’t perform that action at this time.
0 commit comments