aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhelloPiers <git@hellopiers.io>2021-07-19 20:08:50 +0000
committerIan Lance Taylor <iant@golang.org>2021-07-19 21:56:09 +0000
commit1d91551b7326383343c7c143a8ac299d0a685289 (patch)
treef6f59741e6e9903f423b56634234c9ecfee501f0
parent404127c30f3f66eb234da2dc1a78e6eea0ef4ee0 (diff)
downloadgo-1d91551b7326383343c7c143a8ac299d0a685289.tar.gz
go-1d91551b7326383343c7c143a8ac299d0a685289.zip
time: correct typo in documentation for UnixMicro
Fixes #47283. Change-Id: Ibdc35433d22be3caa70197b6a95c66999812a16a GitHub-Last-Rev: 75962b029467a5e26e1ee78a38bf01c954445ea1 GitHub-Pull-Request: golang/go#47284 Reviewed-on: https://go-review.googlesource.com/c/go/+/335549 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Than McIntosh <thanm@google.com>
-rw-r--r--src/time/time.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/time.go b/src/time/time.go
index 1cf1e2bbf6..4ecc3d82dc 100644
--- a/src/time/time.go
+++ b/src/time/time.go
@@ -1334,7 +1334,7 @@ func UnixMilli(msec int64) Time {
}
// UnixMicro returns the local Time corresponding to the given Unix time,
-// usec milliseconds since January 1, 1970 UTC.
+// usec microseconds since January 1, 1970 UTC.
func UnixMicro(usec int64) Time {
return Unix(usec/1e6, (usec%1e6)*1e3)
}