From f5b81e8e2eebd06e79159eaa3e721ac59ba3cc8c Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Fri, 11 Aug 2017 00:54:27 +1000 Subject: [PATCH] Fix godoc --- parser.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/parser.go b/parser.go index 319b324..9bbe56a 100644 --- a/parser.go +++ b/parser.go @@ -33,15 +33,11 @@ type VoidParser func(*State) // // This makes recursive grammars cleaner and allows string literals to be used directly in most contexts. // eg, matching balanced paren: -// ```go -// var group Parser -// group = Seq("(", Maybe(&group), ")") -// ``` +// var group Parser +// group = Seq("(", Maybe(&group), ")") // vs -// ```go -// var group ParserPtr{} -// group.P = Seq(Exact("("), Maybe(group.Parse), Exact(")")) -// ``` +// var group ParserPtr{} +// group.P = Seq(Exact("("), Maybe(group.Parse), Exact(")")) type Parserish interface{} // Parsify takes a Parserish and makes a Parser out of it. It should be called by