Skip to content

Commit

Permalink
Give $NR a more idiomatic Perl 6 example without using a meta-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 4, 2018
1 parent 936bad2 commit 4234cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/5to6-perlvar.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ you can L<zip|/language/operators#index-entry-Z_%28zip_meta_operator%29> with
a L<Range>:
=begin code
for 1..* Z "foo".IO.lines -> ($ln, $text) {
say "$ln: $text"
for "foo".IO.lines.kv -> $n, $line {
say "{$n + 1}: $line"
}
# OUTPUT:
# 1: a
Expand Down

2 comments on commit 4234cc2

@rafaelschipiura
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The paragraph above it doesn't correspond to the code anymore, though. Should be changed to reflect the change in the code.

@lizmat
Copy link
Collaborator Author

@lizmat lizmat commented on 4234cc2 Jun 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rafaelschipiura++ for spotting, [Coke]++ for fixing

Please sign in to comment.