It also says at the link Jason provided:

"Note that if there is only one variable, it is assigned the element; this 
is opposite to the convention in Go range clauses."

Hence it is expected behaviour, if somewhat surprising.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/d33d3e04-cba7-4aed-b5ec-2d1d34d909e6n%40googlegroups.com.

Reply via email to