summaryrefslogtreecommitdiffhomepage
path: root/raku.html.markdown
diff options
context:
space:
mode:
authorBoris Verkhovskiy <boris.verk@gmail.com>2024-04-03 02:30:27 -0700
committerGitHub <noreply@github.com>2024-04-03 02:30:27 -0700
commit6d87022050ffbd5d818781427329c5362e3df197 (patch)
tree3809b2b1a7790d8b30e6d694c575eb68f02f661c /raku.html.markdown
parentc76b8f690a577d9ff89947d79c36a96a7c3b4deb (diff)
parente8dabf3c1955e1a458e8bc936587ad59772a9c33 (diff)
Merge branch 'master' into patch-1
Diffstat (limited to 'raku.html.markdown')
-rw-r--r--raku.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/raku.html.markdown b/raku.html.markdown
index a8059791..39bc0e51 100644
--- a/raku.html.markdown
+++ b/raku.html.markdown
@@ -122,7 +122,7 @@ say @array; # OUTPUT: «a 6 b␤»
# context, and any duplicated keys are deduplicated.
my %hash = 'a' => 1, 'b' => 2;
-# Keys get auto-quoted when the fat comman (`=>`) is used. Trailing commas are
+# Keys get auto-quoted when the fat comma (`=>`) is used. Trailing commas are
# okay.
%hash = a => 1, b => 2, ;
@@ -688,7 +688,7 @@ say (0 or False); # OUTPUT: «False␤».
my ($a, $b, $c, $d, $e) = 1, 0, False, True, 'pi';
say $a && $b && $c; # OUTPUT: «0␤», the first falsey value
say $a && $b && $c; # OUTPUT: «False␤», the first falsey value
-say $a && $d && $e; # OUTPUT: «pi␤», last operand since everthing before is truthy
+say $a && $d && $e; # OUTPUT: «pi␤», last operand since everything before is truthy
# `||` returns the first argument that evaluates to `True`.
say $b || $a || $d; # OUTPUT: «1␤»
@@ -1965,7 +1965,7 @@ say so 'abbbbc' ~~ / a b* c /; # OUTPUT: «True␤»
say so 'aec' ~~ / a b* c /; # OUTPUT: «False␤», "b"(s) are optional, not replaceable.
# `**` - (Unbound) Quantifier
-# If you squint hard enough, you might understand why exponentation is used
+# If you squint hard enough, you might understand why exponentiation is used
# for quantity.
say so 'abc' ~~ / a b**1 c /; # OUTPUT: «True␤», exactly one time
say so 'abc' ~~ / a b**1..3 c /; # OUTPUT: «True␤», one to three times