1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-10 16:54:33 +02:00

Merge pull request #2204 from williadc/master

[perl6/en] Fixed instance where wrong variable name was used
This commit is contained in:
Adam Bard
2016-03-20 21:11:05 -07:00

View File

@@ -824,7 +824,7 @@ say why-not[^5]; #=> 5 15 25 35 45
# (they exist in other langages such as C as `static`)
sub fixed-rand {
state $val = rand;
say $rand;
say $val;
}
fixed-rand for ^10; # will print the same number 10 times