mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Minor typo: fixed curly bracket direction (} -> {)
This commit is contained in:
parent
649e7b0f7a
commit
965d7972d1
@ -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