Skip to content

Commit 9ca5686

Browse files
RedBeard0531Araq
authored andcommitted
Fix typos in scanp docs
1 parent ff7cb3e commit 9ca5686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pure/strscans.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ to use prefix instead of postfix operators.
128128
``E{n,m}`` From ``n`` up to ``m`` times ``E``
129129
``~Ε`` Not predicate
130130
``a ^* b`` Shortcut for ``?(a *(b a))``. Usually used for separators.
131-
``a ^* b`` Shortcut for ``?(a +(b a))``. Usually used for separators.
131+
``a ^+ b`` Shortcut for ``(a *(b a))``. Usually used for separators.
132132
``'a'`` Matches a single character
133133
``{'a'..'b'}`` Matches a character set
134134
``"s"`` Matches a string
@@ -543,7 +543,7 @@ macro scanp*(input, idx: typed; pattern: varargs[untyped]): bool =
543543
result = atm(getAst(tmp(it[1], it[2])), input, idx, attached)
544544

545545
elif it.kind == nnkInfix and it[0].eqIdent"^+":
546-
# a ^* b is rewritten to: (a +(b a))?
546+
# a ^+ b is rewritten to: (a *(b a))
547547
template tmp(a, b): untyped = (a, *(b, a))
548548
result = atm(getAst(tmp(it[1], it[2])), input, idx, attached)
549549
elif it.kind == nnkCommand and it.len == 2 and it[0].eqIdent"pred":

0 commit comments

Comments
 (0)