]> Cypherpunks repositories - gostls13.git/commit
time: fix example in monotonic time comment
authorRuss Cox <rsc@golang.org>
Wed, 28 Jun 2017 14:33:15 +0000 (10:33 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 28 Jun 2017 15:31:44 +0000 (15:31 +0000)
commit5e585830d3bed2b81b825e1c3e8c244726d091d7
treec93f562c28d7a3e8532d0ee7e1200478622c0eb0
parent1a56a27c58cb7c59d8b073a78b96833f9ebe4b75
time: fix example in monotonic time comment

t.Sub(u) would be -20 milliseconds.
The right computation is u.Sub(t), but rewrite to be even clearer.

Thanks to Karsten Weiss for catching this.

Change-Id: I6e274d69b0301840d57c5c65bf4114da0d33bf10
Reviewed-on: https://go-review.googlesource.com/46971
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/time/time.go