summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDustin Williams <williadc+git@gmail.com>2016-03-20 20:02:02 -0700
committerDustin Williams <williadc+git@gmail.com>2016-03-20 20:02:02 -0700
commit74ea20793d8ab73ab93f16646b363c1920e48e15 (patch)
tree039076cddb8a13a03b17044fd49f42baa5d954cc
parent684bae87eff78b55a95b6b42d059747b9ba6a5d4 (diff)
Fixed instance where wrong variable name was used
-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