diff options
author | Russ Cox <rsc@golang.org> | 2021-08-06 13:21:25 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2021-08-12 21:29:44 +0000 |
commit | 044ec4fa9818d785e2b0d4064514abcf4f252fcb (patch) | |
tree | 7e675c243a8f8efda0796487ba5fd422eac13080 /src/time/format.go | |
parent | 46fd547d899286982971474b329d7a95da4f2a6b (diff) | |
download | go-044ec4fa9818d785e2b0d4064514abcf4f252fcb.tar.gz go-044ec4fa9818d785e2b0d4064514abcf4f252fcb.zip |
time: fix docs for new comma layouts
The current text is slightly inaccurate. Make it more correct.
Change-Id: Iebe0051b74649d13982d7eefe3697f9e69c9b75d
Reviewed-on: https://go-review.googlesource.com/c/go/+/340449
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/time/format.go')
-rw-r--r-- | src/time/format.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/time/format.go b/src/time/format.go index bb173a21c2..f4b4f48142 100644 --- a/src/time/format.go +++ b/src/time/format.go @@ -77,9 +77,9 @@ import "errors" // The formats and 002 are space-padded and zero-padded // three-character day of year; there is no unpadded day of year format. // -// A decimal point followed by one or more zeros represents a fractional -// second, printed to the given number of decimal places. -// Either a comma or decimal point followed by one or more nines represents +// A comma or decimal point followed by one or more zeros represents +// a fractional second, printed to the given number of decimal places. +// A comma or decimal point followed by one or more nines represents // a fractional second, printed to the given number of decimal places, with // trailing zeros removed. // For example "15:04:05,000" or "15:04:05.000" formats or parses with |