Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/time/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ func daysBefore(m Month) int {
// which is:
// 0 31 61 92 122 153 183 214 245 275 306 336 367
// This is almost exactly 367/12×(m-1) except for the
// occasonal off-by-one suggesting there may be an
// occasional off-by-one suggesting there may be an
// integer approximation of the form (a×m + b)/c.
// A brute force search over small a, b, c finds that
// (214×m - 211) / 7 computes the function perfectly.
Expand Down