From ca3c2a6790cc7744fa340a497b86d0b479c1d4e3 Mon Sep 17 00:00:00 2001 From: Max Proske Date: Sun, 23 Nov 2025 18:28:56 +0000 Subject: [PATCH] time: fix typo in comment Correct "occasonal" to "occasional" Change-Id: I54b8466a565ad8fd1ae9527c39b935b806062127 GitHub-Last-Rev: 996c59b92407515c7b7e2df23e34789ce280752c GitHub-Pull-Request: golang/go#76426 Reviewed-on: https://go-review.googlesource.com/c/go/+/723520 Reviewed-by: Mark Freeman Auto-Submit: Sean Liao Reviewed-by: Carlos Amedee Reviewed-by: Sean Liao LUCI-TryBot-Result: Go LUCI Reviewed-by: Jorropo --- src/time/time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/time.go b/src/time/time.go index 32a1ce4307..c63910cd91 100644 --- a/src/time/time.go +++ b/src/time/time.go @@ -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.