Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DOC phaser
  • Loading branch information
cognominal committed Jul 22, 2016
1 parent dc85695 commit 8210e65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/Language/phasers.pod6
Expand Up @@ -389,4 +389,13 @@ after the C<whenever> block it is placed within finishes.
This phaser is similar to setting the C<quit> routine while tapping a Supply
with C<tap>.
=head1 DOC phasers
=head2 X<DOC|DOC (phasers)>
The phasers C<BEGIN>, C<CHECK> and C<INIT> are run only in documentation mode when
prefixed with the C<DOC> keyword. The compiler is in documentation when run with C<--doc>.
DOC INIT { say 'init' } # prints 'init' at initialization time when in documentation mode.
=end pod

0 comments on commit 8210e65

Please sign in to comment.