From 22012adb3a8dada5b19eba6d6a9b067295a306a7 Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Mon, 13 May 2019 00:42:30 +0300 Subject: [PATCH] time: fix a typo in comments --- src/time/time.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()