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: inaccuracy on "Slice defaults" page #1483

Open
jacobshandling opened this issue May 1, 2023 · 1 comment
Open

tour: inaccuracy on "Slice defaults" page #1483

jacobshandling opened this issue May 1, 2023 · 1 comment

Comments

@jacobshandling
Copy link

jacobshandling commented May 1, 2023

Context:https://go.dev/tour/moretypes/10

Description currently reads:

When slicing, you may omit the high or low bounds to use their defaults instead.

The default is zero for the low bound and the length of the slice for the high bound.

This should say something like "..and the length of the operand (array or slice) for the high bound."

@crisman
Copy link

crisman commented May 2, 2023

Fixed in golang/website#209, which is not yet merged.

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

2 participants