Fix cut example

This commit is contained in:
Adam Scarr 2017-08-10 22:22:19 +10:00
parent 945e9f0ef0
commit 79d2c5e1c9

View File

@ -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))