Skip to content

Commit 0dd120d

Browse files
committed
encoding/json: fix format string in the Fuzz func
Currently test build fails with: $ go test -tags=gofuzz encoding/json encoding/json/fuzz.go:36:4: Println call has possible formatting directive %s FAIL encoding/json [build failed] Change-Id: I23aef44a421ed0e7bcf48b74ac5a8c6768a4841b Reviewed-on: https://go-review.googlesource.com/c/go/+/190698 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent c485506 commit 0dd120d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoding/json/fuzz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func Fuzz(data []byte) (score int) {
3333
err = Unmarshal(m, u)
3434
if err != nil {
3535
fmt.Printf("v=%#v\n", v)
36-
fmt.Println("m=%s\n", string(m))
36+
fmt.Printf("m=%s\n", m)
3737
panic(err)
3838
}
3939
}

0 commit comments

Comments
 (0)