tour icon indicating copy to clipboard operation
tour copied to clipboard

tour: No example code of half open slice range

Open kaiwulf opened this issue 4 years ago • 1 comments

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?

kaiwulf avatar Sep 17 '20 20:09 kaiwulf

There is:

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

a[1:4]

crisman avatar Mar 10 '23 21:03 crisman