#88 Update README.md

This commit is contained in:
z7zmey 2019-05-01 09:34:05 +03:00
parent 984dba6a80
commit 394f882100

View File

@ -35,8 +35,8 @@ Usage example
package main
import (
"fmt"
"bytes"
"fmt"
"os"
"github.com/z7zmey/php-parser/php7"
@ -56,12 +56,10 @@ func main() {
visitor := visitor.Dumper{
Writer: os.Stdout,
Indent: "",
Comments: parser.GetComments(),
Positions: parser.GetPositions(),
}
rootNode := parser.GetRootNode()
rootNode.Walk(visitor)
rootNode.Walk(&visitor)
}
```