mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: fix some vet-found printf errors
R=golang-dev, iant CC=golang-dev https://golang.org/cl/7393059
This commit is contained in:
parent
1a01ffd386
commit
707ab1347f
4 changed files with 4 additions and 4 deletions
|
|
@ -1158,7 +1158,7 @@ type Time3339 time.Time
|
|||
|
||||
func (t *Time3339) UnmarshalJSON(b []byte) error {
|
||||
if len(b) < 2 || b[0] != '"' || b[len(b)-1] != '"' {
|
||||
return fmt.Errorf("types: failed to unmarshal non-string value %q as an RFC 3339 time")
|
||||
return fmt.Errorf("types: failed to unmarshal non-string value %q as an RFC 3339 time", b)
|
||||
}
|
||||
tm, err := time.Parse(time.RFC3339, string(b[1:len(b)-1]))
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue