mirror of
https://github.com/golang/go
synced 2024-11-21 21:24:45 -07:00
strconv: quote erroneous string in errors
Fixes #1253. R=gri CC=golang-dev https://golang.org/cl/2990041
This commit is contained in:
parent
26cda27b0f
commit
02469b8200
@ -11,7 +11,7 @@ type NumError struct {
|
||||
Error os.Error
|
||||
}
|
||||
|
||||
func (e *NumError) String() string { return "parsing " + e.Num + ": " + e.Error.String() }
|
||||
func (e *NumError) String() string { return `parsing "` + e.Num + `": ` + e.Error.String() }
|
||||
|
||||
|
||||
func computeIntsize() uint {
|
||||
|
Loading…
Reference in New Issue
Block a user