Skip to content

Commit 996c59b

Browse files
committed
time: fix typo in comment
Correct "occasonal" to "occasional"
1 parent e88be8a commit 996c59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time/time.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ func daysBefore(m Month) int {
12791279
// which is:
12801280
// 0 31 61 92 122 153 183 214 245 275 306 336 367
12811281
// This is almost exactly 367/12×(m-1) except for the
1282-
// occasonal off-by-one suggesting there may be an
1282+
// occasional off-by-one suggesting there may be an
12831283
// integer approximation of the form (a×m + b)/c.
12841284
// A brute force search over small a, b, c finds that
12851285
// (214×m - 211) / 7 computes the function perfectly.

0 commit comments

Comments
 (0)