From 02469b82006f354c72b488a7b764e4c28a918bab Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 8 Nov 2010 15:08:41 -0800 Subject: [PATCH] strconv: quote erroneous string in errors Fixes #1253. R=gri CC=golang-dev https://golang.org/cl/2990041 --- src/pkg/strconv/atoi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/strconv/atoi.go b/src/pkg/strconv/atoi.go index e82b6cdba7c..f7b8456725b 100644 --- a/src/pkg/strconv/atoi.go +++ b/src/pkg/strconv/atoi.go @@ -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 {