5 ms·
No, it's correct. It's meant to print "it's a 84".
by mseepgood 13y ago
No, it's correct. It's meant to print "it's a 84".
- NKCSS 13y agoWould't you expect either "it's 84" or "it's a(n) int|decimal|other_type"? I figured they ment to do the latter, since the next print function outputs: "it's a string".
- mseepgood 13y agoSince c is a chan int it can only be an int, no other type. You could directly write fmt.Println("it's an int").