summaryrefslogtreecommitdiff
path: root/examples_test.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-10 22:22:19 +1000
committerAdam Scarr <adam@vektah.net>2017-08-10 22:22:19 +1000
commit79d2c5e1c9ffefc47401a120605010954bf6a2db (patch)
tree531a6b7c10e6a2bfe45635cebb466c347a13b1d5 /examples_test.go
parent945e9f0ef0d9e1e678435d3090d4a742f6682440 (diff)
Fix cut example
Diffstat (limited to 'examples_test.go')
-rw-r--r--examples_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples_test.go b/examples_test.go
index b4a8086..066ce01 100644
--- a/examples_test.go
+++ b/examples_test.go
@@ -4,7 +4,7 @@ import (
"fmt"
)
-func ExampleCuts() {
+func ExampleCut() {
// without a cut if the close tag is left out the parser will backtrack and ignore the rest of the string
alpha := Chars("a-z")
nocut := Many(Any(Seq("<", alpha, ">"), alpha))