You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For arrays or strings, the indices are in range if 0 <= low <= high <= len(a), otherwise they are out of range. For slices, the upper index bound is the slice capacity cap(a) rather than the length.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/GrgeaBAXGkp
This happens only if we specify low-index as len of slice
i.e. this gives proper error:
https://play.golang.org/p/Ax4khdrwotW
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: