]> Cypherpunks repositories - gostls13.git/commitdiff
test: use lower-case error message in heapsampling.go
authorjjpinto <jorgpinto@gmail.com>
Fri, 26 Dec 2025 14:48:24 +0000 (14:48 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 22 Jan 2026 20:57:37 +0000 (12:57 -0800)
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>
test/heapsampling.go

index db93b253c90bab1879bbe6ec8a894dc9540d9884..0517d1bbb754ba064c50b5e45f707801666f5565 100644 (file)
@@ -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:] {