aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjjpinto <jorgpinto@gmail.com>2025-12-26 14:48:24 +0000
committerGopher Robot <gobot@golang.org>2026-01-22 12:57:37 -0800
commiteaf6650c2bff2fe466621f8fa23844dcbbdbcee8 (patch)
tree150b0cacd3da91611cce1df1315786d2d1b7c548
parent1b7e5836ad2ae6bc5466e3b1916294d20403386c (diff)
downloadgo-eaf6650c2bff2fe466621f8fa23844dcbbdbcee8.tar.xz
test: use lower-case error message in heapsampling.go
According to Go style guidelines, error strings should not be capitalized. Change-Id: Iacfb3f5192b7be40da99b6b7e4801f1ae1169efc GitHub-Last-Rev: 440396e0946edb18c422442ea235b5c57c2899af GitHub-Pull-Request: golang/go#76999 Reviewed-on: https://go-review.googlesource.com/c/go/+/732760 Auto-Submit: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Amedee <carlos@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org>
-rw-r--r--test/heapsampling.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/heapsampling.go b/test/heapsampling.go
index db93b253c9..0517d1bbb7 100644
--- a/test/heapsampling.go
+++ b/test/heapsampling.go
@@ -205,7 +205,7 @@ func checkAllocations(records []runtime.MemProfileRecord, leafFrame string, fram
// consistently far from the expected value.
func checkValue(fname string, ln int, testName string, want int64, got []int64) error {
if got == nil {
- return fmt.Errorf("Unexpected empty result")
+ return fmt.Errorf("unexpected empty result")
}
min, max := got[0], got[0]
for _, g := range got[1:] {