Skip to content

Commit 8210e65

Browse files
committed
DOC phaser
1 parent dc85695 commit 8210e65

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/Language/phasers.pod6

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,4 +389,13 @@ after the C<whenever> block it is placed within finishes.
389389
This phaser is similar to setting the C<quit> routine while tapping a Supply
390390
with C<tap>.
391391
392+
=head1 DOC phasers
393+
394+
=head2 X<DOC|DOC (phasers)>
395+
396+
The phasers C<BEGIN>, C<CHECK> and C<INIT> are run only in documentation mode when
397+
prefixed with the C<DOC> keyword. The compiler is in documentation when run with C<--doc>.
398+
399+
DOC INIT { say 'init' } # prints 'init' at initialization time when in documentation mode.
400+
392401
=end pod

0 commit comments

Comments
 (0)