2 ms·
I believe it's broken if len(Data) == 3 as you are trying to access Data[3], which is out of bounds if Data is length 3.
by brianyu8 8y ago
I believe it's broken if len(Data) == 3 as you are trying to access Data[3], which is out of bounds if Data is length 3.
- js2 8y agoAh you're right, it was the Python example I couldn't find anything wrong with and then I copy/pasted the Go example without looking at it as closely. Python example has been fixed though per sibling comment.