]> Cypherpunks repositories - gostls13.git/commit
time: fix typo in ExampleParseDuration
authorRob Pike <r@golang.org>
Mon, 12 Feb 2024 00:35:29 +0000 (11:35 +1100)
committerRob Pike <r@golang.org>
Tue, 13 Feb 2024 01:05:00 +0000 (01:05 +0000)
commit0336d5eb43f1269060b3e89b4d4e2c0f527cfe4f
tree21907517b62539bbda2564f305157ea49f0d8eda
parent718dc025e7b2cdef26c6a5f3d5c2645885ef44a5
time: fix typo in ExampleParseDuration

A typo without consequences, but confusing nonetheless. The last
line prints micro2 and then micro, instead of micro2 twice.
One-character fix.

Fixes #65666

Change-Id: I61d636382a2223d53eac58d6ddbcc7c15b4efc85
Reviewed-on: https://go-review.googlesource.com/c/go/+/563275
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/time/example_test.go