On Thu, Jan 11, 2018 at 8:57 PM, Nigel Tao <nigel...@golang.org> wrote:

> On Wed, Jan 3, 2018 at 1:03 PM, Tong Sun <suntong...@gmail.com> wrote:
> > Shouldn't Token() be better returning the current one
> > instead of the next?
>
> You're right. I sent out https://go-review.googlesource.com/c/net/+/87515


Thanks  Nigel, for looking into it.

Please be cautious that it might not be only a *misleading* comment, but it
may behave that way as well -- I used Token() under the assumption that it
is returning the current one, but the result was not I was expecting,
that's why I read the doc again and found the issue. It's been a while and
I've tossed away that small test code, but I really suggest that you give
it a test. If you need, (I hope) I can re-write that test case for you.

Thx

-- 
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