]> Cypherpunks repositories - gostls13.git/commit
time: fix documentation of Round, Truncate behavior for d <= 0
authorDmitri Shuralyov <shurcooL@gmail.com>
Thu, 17 Aug 2017 23:30:34 +0000 (19:30 -0400)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Aug 2017 17:16:15 +0000 (17:16 +0000)
commitb79337212585a473238a37421cefa9931b2fca4c
tree5852352a51009b9519f4c8086eeb6bd0e2aca95b
parentf2c0531795462c0b49dea4f849af18087a5c1077
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>
src/time/time.go