Skip to content

Commit

Permalink
切片的描述部分的修正 (unknwon#545)
Browse files Browse the repository at this point in the history
* Update 07.4.md

* Update 07.2.md

修改切片的描述。
  • Loading branch information
Jevade authored and unknwon committed Oct 16, 2018
1 parent 3618ac6 commit d731e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eBook/07.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ a = a[0:4] // ref of subarray {5,6,7,8} - len(a) is now 4 but cap(a) is still 5

**问题 7.7**

1) 如果 a 是一个切片,那么 `s[n:n]` 的长度是多少?
1) 如果 a 是一个切片,那么 `a[n:n]` 的长度是多少?

2) `s[n:n+1]` 的长度又是多少?
2) `a[n:n+1]` 的长度又是多少?

## 链接

Expand Down

0 comments on commit d731e97

Please sign in to comment.