On Wed, Dec 6, 2017 at 3:41 PM T L <tapir....@gmail.com> wrote:

> ok, I get it. But how about this:

It would be helpful if you state where do you see the problem so others do
not have to guess.

Anyway, the behavior is correct. The loop equals to

// initially      {3, 5, 7}
x[2] = x[0] // {3, 5, 3}
x[2] = x[1] // {3, 5, 5}
x[2] = x[2] // {3, 5, 5}

-- 

-j

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to