aboutsummaryrefslogtreecommitdiff
path: root/internal/testing/sample/sample.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-04-11 13:12:03 -0400
committerGopher Robot <gobot@golang.org>2022-04-11 21:55:57 +0000
commit8ea409f829091208d2d0ba4d81ecbe83b0fee9bb (patch)
tree0c0d0f5d753b722533b3bba32e3e23d4aa3059cd /internal/testing/sample/sample.go
parent7ca74fe938640d7c9e378dc8e5821b58313cdd68 (diff)
downloadgo-x-pkgsite-8ea409f829091208d2d0ba4d81ecbe83b0fee9bb.tar.xz
all: gofmt
Gofmt to update doc comments to the new formatting. For golang/go#51082. Change-Id: Ia9e71e7ecac75822ff43d6c7e60f512442a5fa50 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/399617 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Auto-Submit: Russ Cox <rsc@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/testing/sample/sample.go')
-rw-r--r--internal/testing/sample/sample.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go
index c2fcf9dd..1576ab1c 100644
--- a/internal/testing/sample/sample.go
+++ b/internal/testing/sample/sample.go
@@ -158,7 +158,8 @@ func coveragePercentEqual(a, b float64) bool {
//
// This makes it easier to work with timestamps in PostgreSQL, which have
// Microsecond precision:
-// https://www.postgresql.org/docs/9.1/datatype-datetime.html
+//
+// https://www.postgresql.org/docs/9.1/datatype-datetime.html
func NowTruncated() time.Time {
return time.Now().In(time.UTC).Truncate(time.Microsecond)
}