From 2d99fcc4149186f40bb2c66a8da41ecd532c6f2f Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sat, 28 Jul 2018 07:49:13 -0600 Subject: [PATCH] Switch doc comments for Some and Many --- combinator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/combinator.go b/combinator.go index 5b0d584..b5c000c 100644 --- a/combinator.go +++ b/combinator.go @@ -72,14 +72,14 @@ func Any(parsers ...Parserish) Parser { }) } -// Some matches one or more parsers and returns the value as .Child[n] +// Some matches zero or more parsers and returns the value as .Child[n] // an optional separator can be provided and that value will be consumed // but not returned. Only one separator can be provided. func Some(parser Parserish, separator ...Parserish) Parser { return NewParser("Some()", manyImpl(0, parser, separator...)) } -// Many matches zero or more parsers and returns the value as .Child[n] +// Many matches one or more parsers and returns the value as .Child[n] // an optional separator can be provided and that value will be consumed // but not returned. Only one separator can be provided. func Many(parser Parserish, separator ...Parserish) Parser {