summaryrefslogtreecommitdiff
path: root/examples_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples_test.go')
-rw-r--r--examples_test.go6
1 files changed, 2 insertions, 4 deletions
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 <foo")
fmt.Println(err.Error())