mirror of
https://github.com/golang/go.git
synced 2026-01-29 07:02:05 +03:00
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: 440396e094
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>
This commit is contained in:
@@ -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:] {
|
||||
|
||||
Reference in New Issue
Block a user