Skip to content

Commit 909704b

Browse files
mohansongopherbot
authored andcommitted
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Auto-Submit: Emmanuel Odeke <[email protected]>
1 parent 3db5979 commit 909704b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encoding/json/v2/arshal_time.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ func appendDurationISO8601(b []byte, d time.Duration) []byte {
465465
}
466466

467467
// daysPerYear is the exact average number of days in a year according to
468-
// the Gregorian calender, which has an extra day each year that is
468+
// the Gregorian calendar, which has an extra day each year that is
469469
// a multiple of 4, unless it is evenly divisible by 100 but not by 400.
470470
// This does not take into account leap seconds, which are not deterministic.
471471
const daysPerYear = 365.2425

0 commit comments

Comments
 (0)