mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Merge pull request #1017 from jefferickson/patch-1
Minor typo: fixed curly bracket direction (} -> {)
This commit is contained in:
commit
bc7fd77654
@ -560,7 +560,7 @@ subset VeryBigInteger of Int where * > 500;
|
||||
multi sub sayit(Int $n) { # note the `multi` keyword here
|
||||
say "Number: $n";
|
||||
}
|
||||
multi sayit(Str $s) } # a multi is a `sub` by default
|
||||
multi sayit(Str $s) { # a multi is a `sub` by default
|
||||
say "String: $s";
|
||||
}
|
||||
sayit("foo"); # prints "String: foo"
|
||||
|
Loading…
Reference in New Issue
Block a user