]> Cypherpunks repositories - gostls13.git/commitdiff
time: fix a typo in comments
authorNikita Kryuchkov <nkryuchkov10@gmail.com>
Sun, 12 May 2019 22:03:24 +0000 (22:03 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 13 May 2019 14:06:50 +0000 (14:06 +0000)
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: Brad Fitzpatrick <bradfitz@golang.org>
src/time/time.go

index d9938861ac636326c8d413115763d8cd08aa70e6..c8116a74f43b78ff51d9a8843d0656a2561b7d2c 100644 (file)
@@ -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()