mirror of
https://github.com/golang/go
synced 2024-11-17 16:14:42 -07:00
time: fix a typo in comments
This commit is contained in:
parent
2e4edf4697
commit
22012adb3a
@ -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 {
|
|||||||
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user