aboutsummaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-05-26 15:58:13 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2020-05-26 22:06:26 +0000
commit4abec2a48070da6ca9b8cf53888ad993e0ee82ef (patch)
treea9466ff00a7a0367749cfb909f3530e936dff9ab /src/time
parentb5bf2f068251355538b66d36cc787cf59ced55be (diff)
downloadgo-4abec2a48070da6ca9b8cf53888ad993e0ee82ef.tar.gz
go-4abec2a48070da6ca9b8cf53888ad993e0ee82ef.zip
runtime, time: gofmt
Change-Id: Ib36a5f239db5af497aae122eba049c15d0d4c4a8 Reviewed-on: https://go-review.googlesource.com/c/go/+/235139 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/time')
-rw-r--r--src/time/example_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/example_test.go b/src/time/example_test.go
index 0f9b874944..0afb18aba6 100644
--- a/src/time/example_test.go
+++ b/src/time/example_test.go
@@ -51,7 +51,7 @@ func ExampleDuration_Round() {
func ExampleDuration_String() {
fmt.Println(1*time.Hour + 2*time.Minute + 300*time.Millisecond)
- fmt.Println(300*time.Millisecond)
+ fmt.Println(300 * time.Millisecond)
// Output:
// 1h2m0.3s
// 300ms