summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--perl6.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl6.html.markdown b/perl6.html.markdown
index 5082a433..b5a25a41 100644
--- a/perl6.html.markdown
+++ b/perl6.html.markdown
@@ -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