Fix fuzzer (LoadString does not exist), and mention it in the README.
This commit is contained in:
Thomas Pelletier
2017-10-21 19:23:38 -07:00
committed by GitHub
parent 6d858869d3
commit 8c31c2ec65
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func Fuzz(data []byte) int {
panic(err)
}
tree, err = LoadString(str)
tree, err = Load(str)
if err != nil {
if tree != nil {
panic("tree must be nil if there is an error")