diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-04-05 13:00:35 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-04-05 13:00:35 +0000 |
| commit | 5317bae953858541d9c08ac922e69e512307586a (patch) | |
| tree | 9b24b221f746ee0146e18dafeda90545c9cff5ae | |
| parent | docs/internals/extensions: write about actions, IOStreams (diff) | |
| download | alive-5317bae953858541d9c08ac922e69e512307586a.tar.gz alive-5317bae953858541d9c08ac922e69e512307586a.zip | |
fix core.base.match docs
| -rw-r--r-- | core/base/match.moon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/base/match.moon b/core/base/match.moon index b780ff6..b0f81e9 100644 --- a/core/base/match.moon +++ b/core/base/match.moon @@ -39,7 +39,7 @@ -- sequence of keys that are used instead of integers when constructing the -- capture table: -- --- pattern = (val.str + val.num):named{'key', 'value'} +-- pattern = (val.str + val.num):named('key', 'value') -- pattern:match(...) -- -- returns { {key='a', value=1}, {key='b', value=2}, ...} -- @@ -154,7 +154,7 @@ class Repeat extends Pattern -- -- Matches the inner patterns in order, only succeeds if all of them match. -- Captures the individual captures produced by the inner patterns in a --- sequence, or table with keys specified in `keys` or using the `:named(keys)` +-- sequence, or table with keys specified in `keys` or using the `:named(...)` -- modifier. -- -- @function Sequence |
