]> Cypherpunks repositories - gostls13.git/commitdiff
time: update doc string for Error method
authorRob Pike <r@golang.org>
Thu, 1 Dec 2011 19:44:17 +0000 (11:44 -0800)
committerRob Pike <r@golang.org>
Thu, 1 Dec 2011 19:44:17 +0000 (11:44 -0800)
Fixes #2512.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5449057

src/pkg/time/format.go

index d09735763fdeb427d2c0c95ac3ca6cda15b2af85..082a51a1621ddac36123841b8c5e7e40eb8b6249 100644 (file)
@@ -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 " +