fix
This commit is contained in:
@ -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`中。
|
||||||
|
|
||||||
<a name="inserting_and_removing"></a>
|
<a name="inserting_and_removing"></a>
|
||||||
### 插入和删除 (Inserting and Removing)
|
### 插入和删除 (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` 中。
|
||||||
|
|
||||||
|
|
||||||
<a name="comparing_strings"></a>
|
<a name="comparing_strings"></a>
|
||||||
|
|||||||
Reference in New Issue
Block a user