]> Cypherpunks repositories - gostls13.git/commitdiff
time: correct typo in documentation for UnixMicro
authorhelloPiers <git@hellopiers.io>
Mon, 19 Jul 2021 20:08:50 +0000 (20:08 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 19 Jul 2021 21:56:09 +0000 (21:56 +0000)
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>

src/time/time.go

index 1cf1e2bbf61f2d12ce2a05efb599280e82fab1cd..4ecc3d82dcc95895742e6219c95503c994722c0f 100644 (file)
@@ -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)
 }