doc: documentation of p,+ macro should mention that it maps to sepBy1, not sepBy (#9876)
This PR fixes doc issue of p,+ macro,which maps to sepBy1(p, ",") while doc says that it maps to sepBy(p, ","). Closes https://github.com/leanprover/lean4/issues/9873
This commit is contained in:
parent
cd729660ed
commit
b75fbe7a40
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ results. It has arity 1, and auto-groups its component parser if needed.
|
|||
-/
|
||||
macro:arg x:stx:max ",*" : stx => `(stx| sepBy($x, ",", ", "))
|
||||
/--
|
||||
`p,+` is shorthand for `sepBy(p, ",")`. It parses 1 or more occurrences of
|
||||
`p,+` is shorthand for `sepBy1(p, ",")`. It parses 1 or more occurrences of
|
||||
`p` separated by `,`, that is: `p | p,p | p,p,p | ...`.
|
||||
|
||||
It produces a `nullNode` containing a `SepArray` with the interleaved parser
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue