]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/objabi: declare HeadType String on a non-pointer receiver
authorJoel Sing <joel@sing.id.au>
Tue, 13 Sep 2022 09:32:34 +0000 (19:32 +1000)
committerGopher Robot <gobot@golang.org>
Tue, 13 Sep 2022 17:39:55 +0000 (17:39 +0000)
commite084d844208621d0d9c060f8322d242adb26e845
tree41c364bd6222102d23e524d5fb2fa382c5b06897
parent09f3ff174c6487bebc4a9a6adea6d74baf6a92cc
cmd/internal/objabi: declare HeadType String on a non-pointer receiver

objabi.HeadType is typically used as a non-pointer type, however the String function
is declared on a pointer receiver. This means that in most cases its integer value
is printed, rather than the value from the String function.

Change-Id: I3d28d9680e88a714bc1152ed5e1df4ac43d7a33f
Reviewed-on: https://go-review.googlesource.com/c/go/+/430556
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jenny Rakoczy <jenny@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Jenny Rakoczy <jenny@golang.org>
src/cmd/internal/objabi/head.go