diff --git a/src/time/time.go b/src/time/time.go index d9938861ac..c8116a74f4 100644 --- a/src/time/time.go +++ b/src/time/time.go @@ -940,7 +940,7 @@ overflow: func Since(t Time) Duration { var now Time if t.wall&hasMonotonic != 0 { - // Common case optimization: if t has monotomic time, then Sub will use only it. + // Common case optimization: if t has monotonic time, then Sub will use only it. now = Time{hasMonotonic, runtimeNano() - startNano, nil} } else { now = Now() @@ -953,7 +953,7 @@ func Since(t Time) Duration { func Until(t Time) Duration { var now Time if t.wall&hasMonotonic != 0 { - // Common case optimization: if t has monotomic time, then Sub will use only it. + // Common case optimization: if t has monotonic time, then Sub will use only it. now = Time{hasMonotonic, runtimeNano() - startNano, nil} } else { now = Now()