1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

ch1-3-fix typos

This commit is contained in:
sfw 2018-08-08 16:01:55 +08:00
parent badc728845
commit 18cbd6ff17

View File

@ -454,7 +454,7 @@ copy(a[i:], x) // 复制新添加的切片
**删除切片元素** **删除切片元素**
根据要删除元素的位置有三种类型:从开头位置删除,从中间位置删除,从尾部删除。其中删除切片尾部的元素最快: 根据要删除元素的位置有三种情况:从开头位置删除,从中间位置删除,从尾部删除。其中删除切片尾部的元素最快:
```go ```go
a = []int{1, 2, 3} a = []int{1, 2, 3}