Skip to content
New issue

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

tour: Incorrect Default High Bound Description in Slicing Documentation #1701

Open
Aakash686 opened this issue Feb 16, 2025 · 0 comments
Open

Comments

@Aakash686
Copy link

The documentation states:
"The default is zero for the low bound and the length of the slice for the high bound."
However, this is misleading. The default high bound should be the length of the array (when slicing an array) or the length of the slice (when slicing a slice).

Suggested Fix:
"The default is zero for the low bound and the length of the array (when slicing an array) or the length of the slice (when slicing a slice) for the high bound."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant