diff options
author | Rob Pike <r@golang.org> | 2010-11-08 15:08:41 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-11-08 15:08:41 -0800 |
commit | 02469b82006f354c72b488a7b764e4c28a918bab (patch) | |
tree | ead763d3df4234dba81f903be513eec9ea935cfe | |
parent | 26cda27b0fc5179891a847fc870817272873cb5b (diff) | |
download | go-02469b82006f354c72b488a7b764e4c28a918bab.tar.gz go-02469b82006f354c72b488a7b764e4c28a918bab.zip |
strconv: quote erroneous string in errors
Fixes #1253.
R=gri
CC=golang-dev
https://golang.org/cl/2990041
-rw-r--r-- | src/pkg/strconv/atoi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/strconv/atoi.go b/src/pkg/strconv/atoi.go index e82b6cdba7..f7b8456725 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 { |