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: No example code of half open slice range #1045

Open
kaiwulf opened this issue Sep 17, 2020 · 1 comment
Open

tour: No example code of half open slice range #1045

kaiwulf opened this issue Sep 17, 2020 · 1 comment

Comments

@kaiwulf
Copy link

kaiwulf commented Sep 17, 2020

Context: https://tour.golang.org/moretypes/7

"This selects a half-open range which includes the first element, but excludes the last one."

Should there be an example below that line?

@crisman
Copy link

crisman commented Mar 10, 2023

There is:

The following expression creates a slice which includes
elements 1 through 3 of a:

a[1:4]

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