Skip to content

Commit

Permalink
encoding/gob: address go vet report
Browse files Browse the repository at this point in the history
Use Fatalf for formatting directive rather than plain Fatal.

Change-Id: Iebd30cd6326890e9501746113a6d97480949e3d2
Reviewed-on: https://go-review.googlesource.com/2161
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
ceh authored and bradfitz committed Dec 28, 2014
1 parent b1f29b2 commit d4e48ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoding/gob/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,6 @@ func TestErrorForHugeSlice(t *testing.T) {
t.Fatal("decode: no error")
}
if !strings.Contains(err.Error(), "slice too big") {
t.Fatal("decode: expected slice too big error, got %s", err.Error())
t.Fatalf("decode: expected slice too big error, got %s", err.Error())
}
}

0 comments on commit d4e48ee

Please sign in to comment.