update README.md

This commit is contained in:
z7zmey 2018-01-12 10:17:41 +02:00
parent 1db53be4ae
commit d30cf11d35

View File

@ -30,8 +30,8 @@ import (
)
func main() {
src := `<? echo "Hello world";`
nodes, comments, positions := parser.Parse(bytes.NewBufferString(src), "example.php")
src := bytes.NewBufferString(`<? echo "Hello world";`)
nodes, comments, positions := parser.Parse(src, "example.php")
visitor := visitor.Dumper{" | ", comments, positions}
nodes.Walk(visitor)