1
0
mirror of https://github.com/golang/go synced 2024-11-26 17:46:57 -07:00

time: correct typo in documentation for UnixMicro

Fixes #47283.

Change-Id: Ibdc35433d22be3caa70197b6a95c66999812a16a
GitHub-Last-Rev: 75962b0294
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>
This commit is contained in:
helloPiers 2021-07-19 20:08:50 +00:00 committed by Ian Lance Taylor
parent 404127c30f
commit 1d91551b73

View File

@ -1334,7 +1334,7 @@ func UnixMilli(msec int64) Time {
} }
// UnixMicro returns the local Time corresponding to the given Unix 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 { func UnixMicro(usec int64) Time {
return Unix(usec/1e6, (usec%1e6)*1e3) return Unix(usec/1e6, (usec%1e6)*1e3)
} }