We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On page http://go-book.appspot.com/slices.html
a_slice = array[5:] // means: a_slice = array[5:9] thus: a contains: f,g,h,i,j a_slice = array[:] // means: a_slice = array[0:9] thus: a contains all array elements.
should be:
a_slice = array[5:] // means: a_slice = array[5:10] thus: a contains: f,g,h,i,j a_slice = array[:] // means: a_slice = array[0:10] thus: a contains all array elements.
...because there are 10 elements, not 9.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On page http://go-book.appspot.com/slices.html
should be:
...because there are 10 elements, not 9.
The text was updated successfully, but these errors were encountered: