tour icon indicating copy to clipboard operation
tour copied to clipboard

tour: inaccuracy on "Slice defaults" page

Open jacobshandling opened this issue 1 year ago • 1 comments

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."

jacobshandling avatar May 01 '23 22:05 jacobshandling

Fixed in https://github.com/golang/website/pull/209, which is not yet merged.

crisman avatar May 02 '23 13:05 crisman