We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f42e08 commit e1e742aCopy full SHA for e1e742a
concepts/slices/about.md
@@ -27,7 +27,7 @@ If you don't specify an ending index, it defaults to the length of the slice.
27
28
```go
29
newSlice := withData[2:4] // newSlice == []int{2,3}
30
-newSlice := withData[:2] // newSlice == []int{0,1,2}
+newSlice := withData[:2] // newSlice == []int{0,1}
31
newSlice := withData[2:] // newSlice == []int{2,3,4,5}
32
newSlice := withData[:] // newSlice == []int{0,1,2,3,4,5}
33
```
0 commit comments