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

Merge pull request #260 from fuwensun/pr1-3-6f

ch1-3-fix typos
This commit is contained in:
chai2010 2018-08-08 16:06:08 +08:00 committed by GitHub
commit c3df12937c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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