From 9dc335493ebfefb507de9ffadc08797f3f6cb91a Mon Sep 17 00:00:00 2001 From: Realank-Mac Date: Thu, 14 Jan 2016 20:03:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=9B=86=E5=90=88=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=AB=A0=E8=8A=82=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/chapter2/04_Collection_Types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/chapter2/04_Collection_Types.md b/source/chapter2/04_Collection_Types.md index fe4629dc..249e19da 100755 --- a/source/chapter2/04_Collection_Types.md +++ b/source/chapter2/04_Collection_Types.md @@ -223,7 +223,7 @@ firstItem = shoppingList[0] ```swift let apples = shoppingList.removeLast() // 数组的最后一项被移除了 -// shoppingList 现在只有5项,不包括 cheese +// shoppingList 现在只有5项,不包括 Apples // apples 常量的值现在等于 "Apples" 字符串 ``` @@ -460,7 +460,7 @@ oddDigits.exclusiveOr(singleDigitPrimeNumbers).sort() * 使用`isSubsetOf(_:)`方法来判断一个集合中的值是否也被包含在另外一个集合中。 * 使用`isSupersetOf(_:)`方法来判断一个集合中包含另一个集合中所有的值。 * 使用`isStrictSubsetOf(_:)`或者`isStrictSupersetOf(_:)`方法来判断一个集合是否是另外一个集合的子集合或者父集合并且两个集合并不相等。 -* 使用`isDisjointWith(_:)`方法来判断两个集合是否不含有相同的值。 +* 使用`isDisjointWith(_:)`方法来判断两个集合是否不含有相同的值(是否没有交集)。 ```swift let houseAnimals: Set = ["🐶", "🐱"]