diff options
| author | mohanson <mohanson@outlook.com> | 2025-09-17 17:55:02 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-09-17 14:09:35 -0700 |
| commit | 909704b85e64b156f81e78bcfd1fbd9b032c089a (patch) | |
| tree | e811ee597340862bb7801371bf81f8c76c31d43b /src/encoding | |
| parent | 3db5979e8cc4cc86c4fefb4cecc5a2041b32404d (diff) | |
| download | go-909704b85e64b156f81e78bcfd1fbd9b032c089a.tar.xz | |
encoding/json/v2: fix typo in comment
Use the correct spelling of the Gregorian calendar.
Change-Id: I7e1d2974d38d5d3ded64f98852ee726c7b84be22
Reviewed-on: https://go-review.googlesource.com/c/go/+/704595
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Emmanuel Odeke <emmanuel@orijtech.com>
Diffstat (limited to 'src/encoding')
| -rw-r--r-- | src/encoding/json/v2/arshal_time.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/json/v2/arshal_time.go b/src/encoding/json/v2/arshal_time.go index 70dca8a294..027503734e 100644 --- a/src/encoding/json/v2/arshal_time.go +++ b/src/encoding/json/v2/arshal_time.go @@ -465,7 +465,7 @@ func appendDurationISO8601(b []byte, d time.Duration) []byte { } // daysPerYear is the exact average number of days in a year according to -// the Gregorian calender, which has an extra day each year that is +// the Gregorian calendar, which has an extra day each year that is // a multiple of 4, unless it is evenly divisible by 100 but not by 400. // This does not take into account leap seconds, which are not deterministic. const daysPerYear = 365.2425 |
