aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-01-30 21:56:30 +0000
committers-ol <s+removethis@s-ol.nu>2021-01-30 23:09:20 +0000
commitf9135cea52ad751d283856a09886df4e4ea88d84 (patch)
treed4b0b263e08d1614ee18213d2aa71fb094cea529
parentreference/result-kinds: mention conversion ops (diff)
downloadalive-f9135cea52ad751d283856a09886df4e4ea88d84.tar.gz
alive-f9135cea52ad751d283856a09886df4e4ea88d84.zip
alv.base.match: fix docs
-rw-r--r--alv/base/match.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/alv/base/match.moon b/alv/base/match.moon
index f5fa99c..f362f80 100644
--- a/alv/base/match.moon
+++ b/alv/base/match.moon
@@ -13,9 +13,9 @@
-- - `const.sym`: Shorthand for `Type('=', T.sym)`
-- - `sig.num`: Shorthand for `Type('~', T.num)`
-- - `evt.str`: Shorthand for `Type('!', T.str)`
--- - `pat * 2`: Shorthand for `Repeat(pat, 1, 2)` (1-4 times `pat`)
+-- - `pat * 2`: Shorthand for `Repeat(pat, 1, 2)` (1-2 times `pat`)
-- - `pat * 0`: Shorthand for `Repeat(pat, 1, nil)` (1-* times `pat`)
--- - `pat ^ 2`: Shorthand for `Repeat(pat, 0, 2)` (0-4 times `pat`)
+-- - `pat ^ 2`: Shorthand for `Repeat(pat, 0, 2)` (0-2 times `pat`)
-- - `pat ^ 0`: Shorthand for `Repeat(pat, 0, nil)` (0-* times `pat`)
-- - `a + b + … + z`: Shorthand for `Sequence{ a, b, ..., z }`
-- - `a / b / … / z`: Shorthand for `Choice{ a, b, ..., z }`