Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more markup fixes; turns out we need four leading spaces in each code…
… block
  • Loading branch information
moritz committed Aug 23, 2010
1 parent 081b5ef commit 917d907
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
18 changes: 9 additions & 9 deletions src/basics.pod
Expand Up @@ -488,18 +488,18 @@ X<Zen slice>

=begin programlisting

my @flavours = <vanilla peach>;
my @flavours = <vanilla peach>;

say "we have @flavours"; # we have @flavours
say "we have @flavours[0]"; # we have vanilla
# so-called "Zen slice"
say "we have @flavours[]"; # we have vanilla peach
say "we have @flavours"; # we have @flavours
say "we have @flavours[0]"; # we have vanilla
# so-called "Zen slice"
say "we have @flavours[]"; # we have vanilla peach

# method calls ending in postcircumfix
say "we have @flavours.sort()"; # we have peach vanilla
# method calls ending in postcircumfix
say "we have @flavours.sort()"; # we have peach vanilla

# chained method calls:
say "we have @flavours.sort.join(', ')";
# chained method calls:
say "we have @flavours.sort.join(', ')";
# we have peach, vanilla

=end programlisting
Expand Down
22 changes: 11 additions & 11 deletions src/subs-n-sigs.pod
Expand Up @@ -73,17 +73,17 @@ C<our> also makes subroutines visible from the outside of a package or module:

=begin programlisting

module EatAndDrink {
our sub eat() {
say "om nom nom";
}

sub drink() {
say "glug glug";
}
}
EatAndDrink::eat(); # om nom nom
EatAndDrink::drink(); # fails, not declared with "our"
module EatAndDrink {
our sub eat() {
say "om nom nom";
}

sub drink() {
say "glug glug";
}
}
EatAndDrink::eat(); # om nom nom
EatAndDrink::drink(); # fails, not declared with "our"

=end programlisting

Expand Down

0 comments on commit 917d907

Please sign in to comment.