Commit 2fd97ee2 authored by Nikita Kryuchkov's avatar Nikita Kryuchkov Committed by Brad Fitzpatrick

time: fix a typo in comments

Change-Id: I407d7215d077176678a714ff1446e987bb818f7c
GitHub-Last-Rev: 22012adb3a8dada5b19eba6d6a9b067295a306a7
GitHub-Pull-Request: golang/go#31988
Reviewed-on: https://go-review.googlesource.com/c/go/+/176797
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent c583104e
...@@ -940,7 +940,7 @@ overflow: ...@@ -940,7 +940,7 @@ overflow:
func Since(t Time) Duration { func Since(t Time) Duration {
var now Time var now Time
if t.wall&hasMonotonic != 0 { 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} now = Time{hasMonotonic, runtimeNano() - startNano, nil}
} else { } else {
now = Now() now = Now()
...@@ -953,7 +953,7 @@ func Since(t Time) Duration { ...@@ -953,7 +953,7 @@ func Since(t Time) Duration {
func Until(t Time) Duration { func Until(t Time) Duration {
var now Time var now Time
if t.wall&hasMonotonic != 0 { 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} now = Time{hasMonotonic, runtimeNano() - startNano, nil}
} else { } else {
now = Now() now = Now()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment