Commit 02469b82 authored by Rob Pike's avatar Rob Pike

strconv: quote erroneous string in errors

Fixes #1253.

R=gri
CC=golang-dev
https://golang.org/cl/2990041
parent 26cda27b
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment