summaryrefslogtreecommitdiff
path: root/readme.md
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 /readme.md
parent8a92b5348f8cf6769f30237df906ee9ce71ad237 (diff)
Improve cut godoc
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/readme.md b/readme.md
index 5d8e78b..87b0f16 100644
--- a/readme.md
+++ b/readme.md
@@ -215,7 +215,7 @@ fmt.Println(err.Error())
// Outputs: left unparsed: <foo
// 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())
// Outputs: offset 9: expected >