Skip to content

Commit

Permalink
Minor changes and reflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Nov 22, 2018
1 parent b49df78 commit f1d4ae3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/Language/py-nutshell.pod6
Expand Up @@ -316,11 +316,11 @@ Perl 6
Using C<if> as a statement modifier (as above) is acceptable
in Perl 6, even outside of a list comprehension.
The C<yield> statement in Python which produces a
C<generator> is like a C<gather>, C<take> construct
in Perl 6. These both print 1, 2, 3.
The C<yield> statement within a C<for> loop in Python, which produces a
C<generator>, is like a C<gather>/C<take> construct in Perl 6. These both print
1, 2, 3.
Python
I<Python>
=begin code :lang<python>
def count():
Expand All @@ -331,7 +331,7 @@ for c in count():
print c
=end code
Perl 6
I<Perl 6>
sub count {
gather {
Expand Down

0 comments on commit f1d4ae3

Please sign in to comment.