change nodeLoc.string() receiver to value type

This commit is contained in:
sashass1315 2026-02-11 14:10:07 +02:00 committed by GitHub
parent ea359a6e65
commit 37f9119a19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ type nodeLoc struct {
}
// string returns the string representation of node location.
func (loc *nodeLoc) string() string {
func (loc nodeLoc) string() string {
return fmt.Sprintf("loc: %s, depth: %d", loc.loc, loc.depth)
}