1
0
mirror of https://github.com/golang/go synced 2024-11-21 15: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:
Rob Pike 2010-11-08 15:08:41 -08:00
parent 26cda27b0f
commit 02469b8200

View File

@ -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 {