mirror of
https://github.com/golang/go.git
synced 2026-04-04 18:30:22 +09:00
time: fix typo in comment
Correct "occasonal" to "occasional"
Change-Id: I54b8466a565ad8fd1ae9527c39b935b806062127
GitHub-Last-Rev: 996c59b924
GitHub-Pull-Request: golang/go#76426
Reviewed-on: https://go-review.googlesource.com/c/go/+/723520
Reviewed-by: Mark Freeman <markfreeman@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user