From f9135cea52ad751d283856a09886df4e4ea88d84 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sat, 30 Jan 2021 22:56:30 +0100 Subject: alv.base.match: fix docs --- alv/base/match.moon | 4 ++-- 1 file 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 }` -- cgit v1.2.3