From 3aa5844ff8b4558072bf38aaabd9847a68975f91 Mon Sep 17 00:00:00 2001 From: chenmingbiao Date: Mon, 12 Sep 2016 18:15:38 +0800 Subject: [PATCH] fix --- source/chapter2/03_Strings_and_Characters.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/chapter2/03_Strings_and_Characters.md b/source/chapter2/03_Strings_and_Characters.md index 4e2e63c4..d13f4a99 100755 --- a/source/chapter2/03_Strings_and_Characters.md +++ b/source/chapter2/03_Strings_and_Characters.md @@ -368,7 +368,7 @@ for index in greeting.characters.indices { ``` > 注意: -> 您可以使用 `startIndex` 和 `endIndex` 属性或者 `index(before:)` 、`index(after:)` 和 `index(_:offsetBy:)` 方法在任意一个确认的 `Collection`协议类型里面,如上文所示是使用在 `String` 中,您也可以使用在 `Array`,`Dictionary` 和 `Set`。 +> 您可以使用 `startIndex` 和 `endIndex` 属性或者 `index(before:)` 、`index(after:)` 和 `index(_:offsetBy:)` 方法在任意一个确认的并遵循 `Collection` 协议的类型里面,如上文所示是使用在 `String` 中,您也可以使用在 `Array`、`Dictionary` 和 `Set`中。 ### 插入和删除 (Inserting and Removing) @@ -396,7 +396,7 @@ welcome.removeSubrange(range) ``` > 注意: -> 您可以使用 `insert(_:at:)`、`insert(contentsOf:at:)`、`remove(at:)` 和 `removeSubrange(_:)` 方法在任意一个确认的 `RangeReplaceableCollection` 协议类型里面,如上文所示是使用在 `String` 中,您也可以使用在 `Array`,`Dictionary` 和 `Set`。 +> 您可以使用 `insert(_:at:)`、`insert(contentsOf:at:)`、`remove(at:)` 和 `removeSubrange(_:)` 方法在任意一个确认的并遵循 `RangeReplaceableCollection` 协议的类型里面,如上文所示是使用在 `String` 中,您也可以使用在 `Array`、`Dictionary` 和 `Set` 中。