tour
tour copied to clipboard
tour: use general verbs for proper printing
Context: https://go.dev/tour/basics/14
This following piece of code does not use printing verbs, therefore it could be confusing for user to understand what does the v
mean in function output.
func main() {
v := 42 // change me!
fmt.Printf("v is of type %T\n", v)
}
Suggestion:
func main() {
v := 42 // change me!
fmt.Printf("%v is of type %T\n", v, v)
}