diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-10 22:10:30 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-10 22:10:30 +1000 |
commit | 945e9f0ef0d9e1e678435d3090d4a742f6682440 (patch) | |
tree | 18d97b26e44715cbf35c0dc7ec98ad6f3f2df95b /readme.md | |
parent | 8a92b5348f8cf6769f30237df906ee9ce71ad237 (diff) |
Improve cut godoc
Diffstat (limited to 'readme.md')
-rw-r--r-- | readme.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 > |