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
Working as intended. If cap(x) is N, then the slice expression [0:N] gives the whole slice since the indexing is open on the right. [N:N] is just a special case that slices off the empty slice at the end.
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/XT4xCSpIylL
What did you expect to see?
Panic at line 9.
What did you see instead?
Panic at line 10.
The text was updated successfully, but these errors were encountered: