Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
profile: change error message to print string representation of wire …
…type (#514) The proto write type code stored in buffer stores unprintable values (e.g. 2 when unmarshalling). The desired output when printing an error message is the string representation of the integer (i.e. strconv.Itoa), instead of the current behavior string(int) or string(rune), which return the utf8 literal corresponding to the integer. As pointed out by @ianlancetaylor in 4ac0da8#commitcomment-37524728, commit 4ac0da8 preserves the previous incorrect behavior to pass a vet check, whereas this change prints the desired output. Updates golang/go#32479.
- Loading branch information