Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test sample code
minor whitespace fixes
  • Loading branch information
coke committed Nov 2, 2018
1 parent 920cc6f commit ba2964c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions doc/Language/pragmas.pod6
Expand Up @@ -9,7 +9,7 @@ version of Perl 6 to be used or to modify the compiler's normal behavior
in some way. The C<use> keyword enables a pragma (similar to how you can
C<use> a module). To disable a pragma, use the C<no> keyword:
=begin code
=begin code :solo
use v6.c; # use 6.c language version
no worries; # don't issue compile time warnings
=end code
Expand All @@ -22,12 +22,18 @@ are to be defined later.)
=item X<C<v6.x>|v6.x> This pragma states the version of the compiler that is going to be used,
and turns on its features if they are optional.
use v6; # Load latest supported version (non-PREVIEW).
=for code :solo
use v6; # Load latest supported version (non-PREVIEW).
# Also, useful for producing better errors when accidentally
# executing the program with `perl` instead of `perl6`
=for code :solo
use v6.c; # Use the "Christmas" version of Perl 6
use v6.d; # Use the "Diwali" version of Perl 6
=for code :solo
use v6.d; # Use the "Diwali" version of Perl 6
=for code :solo
use v6.d.PREVIEW; # On 6.d-capable compilers, enables 6.d features,
# otherwise enables the available experimental
# preview features for 6.d language
Expand Down
4 changes: 2 additions & 2 deletions doc/Language/regexes.pod6
Expand Up @@ -2245,8 +2245,8 @@ say $/<capital>; # OUTPUT: Nil
=head1 Best practices and gotchas
The L<Regexes: Best practices and gotchas|/language/regexes-best-practicees> provides
useful information on how to avoid common pitfalls when writing regexes and grammars.
The L<Regexes: Best practices and gotchas|/language/regexes-best-practicees> provides
useful information on how to avoid common pitfalls when writing regexes and grammars.
=end pod
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 comments on commit ba2964c

Please sign in to comment.