Skip to content

Commit 347c99e

Browse files
committed
replace i with x
1 parent 865fdcf commit 347c99e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/Language/py-nutshell.pod6

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,19 @@ Perl 6
157157
# ok, x is 10
158158
159159
Python
160-
i = 10
161-
for i in 1,2,3:
160+
x = 10
161+
for x in 1,2,3:
162162
pass
163-
print i
164-
# i is 3
163+
print x
164+
# x is 3
165165
166166
Perl 6
167-
my \i = 10;
168-
for 1, 2, 3 -> \i {
167+
my \x = 10;
168+
for 1, 2, 3 -> \x {
169169
# do nothing
170170
}
171-
say i;
172-
# i is 10
171+
say x;
172+
# x is 10
173173
174174
Lambdas in Python can be written as pointy blocks in Perl 6.
175175

0 commit comments

Comments
 (0)