From 945e9f0ef0d9e1e678435d3090d4a742f6682440 Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Thu, 10 Aug 2017 22:10:30 +1000 Subject: Improve cut godoc --- examples_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples_test.go') diff --git a/examples_test.go b/examples_test.go index a1de129..b4a8086 100644 --- a/examples_test.go +++ b/examples_test.go @@ -1,9 +1,7 @@ -package goparsify_test +package goparsify import ( "fmt" - - . "github.com/vektah/goparsify" ) func ExampleCuts() { @@ -14,7 +12,7 @@ func ExampleCuts() { fmt.Println(err.Error()) // with a cut, once we see the open tag we know there must be a close tag that matches it, so the parser will error - cut := Many(Any(Seq("<", Cut, alpha, ">"), alpha)) + cut := Many(Any(Seq("<", Cut(), alpha, ">"), alpha)) _, err = Run(cut, "asdf