]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.9] time: fix documentation of Round, Truncate behavior for d...
authorDmitri Shuralyov <shurcooL@gmail.com>
Thu, 17 Aug 2017 23:30:34 +0000 (19:30 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 Oct 2017 20:22:45 +0000 (20:22 +0000)
commit2e4358c960dbdea925ff879cca7f5de57f2e8629
tree78ed1fd9ba2e87cee5d2ab94c2ec2e052628a8fa
parentc6388d381ee4b62c56b499bc8a8d3127af86faa3
[release-branch.go1.9] time: fix documentation of Round, Truncate behavior for d <= 0

Saying that they return t unchanged is misleading, because they return
a modified t, stripped of any monotonic clock reading, as of Go 1.9.

Fixes #21485.

Change-Id: Icddf8813aed3d687fcefcd2fe542829438be6a0a
Reviewed-on: https://go-review.googlesource.com/56690
Reviewed-by: Avelino <t@avelino.xxx>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-on: https://go-review.googlesource.com/70846
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Russ Cox <rsc@golang.org>
src/time/time.go