1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:20:22 -07:00

time: update doc string for Error method

Fixes #2512.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5449057
This commit is contained in:
Rob Pike 2011-12-01 11:44:17 -08:00
parent d2b77bb194
commit 473de60359

View File

@ -515,7 +515,7 @@ func quote(s string) string {
return "\"" + s + "\"" return "\"" + s + "\""
} }
// String is the string representation of a ParseError. // Error returns the string representation of a ParseError.
func (e *ParseError) Error() string { func (e *ParseError) Error() string {
if e.Message == "" { if e.Message == "" {
return "parsing time " + return "parsing time " +