summaryrefslogtreecommitdiff
path: root/examples_test.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-10 22:10:30 +1000
committerAdam Scarr <adam@vektah.net>2017-08-10 22:10:30 +1000
commit945e9f0ef0d9e1e678435d3090d4a742f6682440 (patch)
tree18d97b26e44715cbf35c0dc7ec98ad6f3f2df95b /examples_test.go
parent8a92b5348f8cf6769f30237df906ee9ce71ad237 (diff)
Improve cut godoc
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())