]> Cypherpunks repositories - gostls13.git/commit
time: fix typo in Truncate example
authorKeith Rarick <kr@xph.us>
Thu, 12 Jul 2018 06:08:21 +0000 (23:08 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 12 Jul 2018 15:01:16 +0000 (15:01 +0000)
commit33c7f88eafde1a15b8c60e208d526b436cc6d02e
tree52e9e936e8c18ad93177b2a3f068b35edf856afc
parenta7bcb5390d1f5c5d955663eedcade63daac270c4
time: fix typo in Truncate example

The existing example code uses variable name d, but
prints t in its output. It's needlessly confusing.

Change-Id: I67bef3c732e84d2d89819f96b4b62663630fd69e
Reviewed-on: https://go-review.googlesource.com/123516
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/time/example_test.go