From 2fd97ee25e8a623e460aff26b4c422dec9532654 Mon Sep 17 00:00:00 2001 From: Nikita Kryuchkov Date: Sun, 12 May 2019 22:03:24 +0000 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- 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() -- 2.48.1