aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjjpinto <jorgpinto@gmail.com>2025-12-27 14:26:09 +0000
committerGopher Robot <gobot@golang.org>2026-02-24 09:09:15 -0800
commit370513491ab89fe25afb8a4864c409a3dff836b1 (patch)
treebeb02e83d431d7001bb1e5443549ba5f1a6db941 /src
parent0bd25dc875a3157974c06ba8d4fb33f95ac2dfdd (diff)
downloadgo-370513491ab89fe25afb8a4864c409a3dff836b1.tar.xz
internal/profile: fix error message casing for function ID not found
Go convention: error messages should not be capitalized Change-Id: I021f54791b7c12ffffa7106532a33cd0ee2e9377 GitHub-Last-Rev: dfa6e0ff5212deb105c747ed80041eff5efc4447 GitHub-Pull-Request: golang/go#77013 Reviewed-on: https://go-review.googlesource.com/c/go/+/732900 Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/internal/profile/encode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/profile/encode.go b/src/internal/profile/encode.go
index 94d04bf094..0101def1b2 100644
--- a/src/internal/profile/encode.go
+++ b/src/internal/profile/encode.go
@@ -232,7 +232,7 @@ func (p *Profile) postDecode() error {
if id := ln.functionIDX; id != 0 {
l.Line[i].Function = functions[id]
if l.Line[i].Function == nil {
- return fmt.Errorf("Function ID %d not found", id)
+ return fmt.Errorf("function ID %d not found", id)
}
l.Line[i].functionIDX = 0
}