Skip to content

Commit

Permalink
Fix typo in example identifier name
Browse files Browse the repository at this point in the history
  • Loading branch information
softmoth committed Nov 10, 2018
1 parent 0ab2997 commit 5feaf6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/operators.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ all values that have keys in both hashes.
Hyper operators can take user-defined operators as their operator argument.
sub pretty-file-site (Int $size --> Str) {
sub pretty-file-size (Int $size --> Str) {
# rounding version of infix:</>(Int, Int)
sub infix:<r/>(Int \i1, Int \i2) {
round(i1 / i2, 0.1)
Expand All @@ -362,7 +362,7 @@ Hyper operators can take user-defined operators as their operator argument.
for 60, 50, 40, 30, 20, 10 -> $test {
my &a = { (2 ** $test) * (1/4, 1/2, 1, 10, 100).pick * (1..10).pick };
print pretty-file-site(a.Int) xx 2, ' ';
print pretty-file-size(a.Int) xx 2, ' ';
}
# OUTPUT: «10 EB 4 EB 2 PB 5 PB 0.5 PB 4 TB 300 GB 4.5 GB 50 MB 200 MB 9 KB 0.6 MB␤»
Expand Down

0 comments on commit 5feaf6e

Please sign in to comment.