Merge pull request #2078 from owenr/master

Fix #2040
This commit is contained in:
ven 2015-12-28 01:54:03 +01:00
commit 2d746ee781

View File

@ -103,7 +103,7 @@ sub say-hello-to(Str $name) { # You can provide the type of an argument
## It can also have optional arguments: ## It can also have optional arguments:
sub with-optional($arg?) { # the "?" marks the argument optional sub with-optional($arg?) { # the "?" marks the argument optional
say "I might return `(Any)` (Perl's "null"-like value) if I don't have say "I might return `(Any)` (Perl's 'null'-like value) if I don't have
an argument passed, or I'll return my argument"; an argument passed, or I'll return my argument";
$arg; $arg;
} }