summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Schumacher <maximilianbschumacher@gmail.com>2020-03-14 10:10:29 +0100
committerGitHub <noreply@github.com>2020-03-14 10:10:29 +0100
commit1599a765c5dc85184fad683df7baa5ccfe47aafa (patch)
tree1bd5b067df123d4744949154b743d1254d456684
parent9e975a8dcf821ea385742cfe9088d72388d08e43 (diff)
parent9bf06f148415d99d89c58d81376142414587cbb3 (diff)
Merge pull request #3885 from MonliH/patch-1
[raku/en] Added missing function call
-rw-r--r--raku.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/raku.html.markdown b/raku.html.markdown
index 4f397589..2460ac7e 100644
--- a/raku.html.markdown
+++ b/raku.html.markdown
@@ -284,8 +284,8 @@ else". You can have as many parameters *before* a slurpy one, but not *after*.
sub as-many($head, *@rest) {
@rest.join(' / ') ~ " !";
}
-say as-many('Happy', 'Happy', 'Birthday'); # OUTPUT: «Happy / Birthday !␤»
-say 'Happy', ['Happy', 'Birthday'], 'Day'; # OUTPUT: «Happy / Birthday / Day !␤»
+say as-many('Happy', 'Happy', 'Birthday'); # OUTPUT: «Happy / Birthday !␤»
+say as-many('Happy', ['Happy', 'Birthday'], 'Day'); # OUTPUT: «Happy / Birthday / Day !␤»
# Note that the splat (the *) did not consume the parameter before it.
@@ -769,7 +769,7 @@ sub unpack_array( @array [$fst, $snd] ) {
# (^ remember the `[]` to interpolate the array)
}
unpack_array(@tail);
-# OUTPUT: «My first is 3, my second is 3! All in all, I'm 2 3.␤»
+# OUTPUT: «My first is 2, my second is 3! All in all, I'm 2 3.␤»
# If you're not using the array itself, you can also keep it anonymous,
# much like a scalar: