I noticed today that the regexp docs read:

If 'Index' is present, matches and submatches are identified by byte index 
pairs within the input string: result[2*n:2*n+2] identifies the indexes of 
the nth submatch. 

I think that should be result[2*n:2*n+1] - at least in my code that's how 
it is working.

If I'm right, happy to raise a doc bug, but never done that, so not sure 
how - for a one digit change?

Peter

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6d84a903-2584-4eab-b2f2-974fdf9228b8n%40googlegroups.com.

Reply via email to