aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-12-01 11:44:17 -0800
committerRob Pike <r@golang.org>2011-12-01 11:44:17 -0800
commit473de6035930f4014a07f5b2a1315993cb42fb27 (patch)
treecdc90eb9a3764b863f2131aee5d43c2de5a626bb
parentd2b77bb194b8377c1b1ba5826960f1e63f13a51a (diff)
downloadgo-473de6035930f4014a07f5b2a1315993cb42fb27.tar.gz
go-473de6035930f4014a07f5b2a1315993cb42fb27.zip
time: update doc string for Error method
Fixes #2512. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5449057
-rw-r--r--src/pkg/time/format.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/time/format.go b/src/pkg/time/format.go
index d09735763f..082a51a162 100644
--- a/src/pkg/time/format.go
+++ b/src/pkg/time/format.go
@@ -515,7 +515,7 @@ func quote(s string) string {
return "\"" + s + "\""
}
-// String is the string representation of a ParseError.
+// Error returns the string representation of a ParseError.
func (e *ParseError) Error() string {
if e.Message == "" {
return "parsing time " +