mirror of https://github.com/golang/go.git
To an experienced Go user, the previous error message doesn't describe the error--it merely states a fact. The new error message asks if the user meant fmt.Sprint(x). If they used the conversion correctly, the suggested fix to replace string(int) with string(rune(int)) is understandable and valid. On the other hand, if they used it to print a digit representation, asking that in the error message further emphasizes the mistake. Updates golang/go#39151. Change-Id: Iab9cdcaf53e9ca134285246fad0546d6f24c3983 Reviewed-on: https://go-review.googlesource.com/c/tools/+/235797 Run-TryBot: Akhil Indurti <aindurti@gmail.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> Reviewed-by: Jay Conrod <jayconrod@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| analysis | ||
| ast | ||
| buildutil | ||
| callgraph | ||
| cfg | ||
| expect | ||
| gccgoexportdata | ||
| gcexportdata | ||
| internal | ||
| loader | ||
| packages | ||
| pointer | ||
| ssa | ||
| types | ||
| vcs | ||