diff options
author | Ian Lance Taylor <iant@golang.org> | 2017-10-31 16:38:17 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-11-01 00:30:39 +0000 |
commit | fb1fd6aee6af655a54193d961d5f11ff16580e6a (patch) | |
tree | 07ba1e2398a34de2cc27aa12b830a69dde5f7f00 /src/time/format.go | |
parent | 6eb8076961310649ce02604edaec6d161d25c88f (diff) | |
download | go-fb1fd6aee6af655a54193d961d5f11ff16580e6a.tar.gz go-fb1fd6aee6af655a54193d961d5f11ff16580e6a.zip |
time: improve comments about valid layouts being invalid Parse values
Updates #9346
Updates #22135
Change-Id: I7039c9f7d49600e877e35b7255c341fea35890e2
Reviewed-on: https://go-review.googlesource.com/74890
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/time/format.go')
-rw-r--r-- | src/time/format.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time/format.go b/src/time/format.go index bfdda2d14c..d964f4ab75 100644 --- a/src/time/format.go +++ b/src/time/format.go @@ -18,8 +18,8 @@ import "errors" // reference time looks like so that the Format and Parse methods can apply // the same transformation to a general time value. // -// Valid layouts may not be a valid time value for time.Parse, due to formats -// like _ for zero padding or Z for zone information. +// Some valid layouts are invalid time values for time.Parse, due to formats +// such as _ for zero padding and Z for zone information. // // Within the format string, an underscore _ represents a space that may be // replaced by a digit if the following number (a day) has two digits; for |