diff --git a/source/chapter2/23_Generics.md b/source/chapter2/23_Generics.md index 3956a19b..03633c0b 100644 --- a/source/chapter2/23_Generics.md +++ b/source/chapter2/23_Generics.md @@ -470,19 +470,19 @@ func allItemsMatch (_ someContainer: C1, _ anotherContainer: C2) -> Bool where C1.ItemType == C2.ItemType, C1.ItemType: Equatable { - // Check that both containers contain the same number of items. + // 检查两个容器含有相同数量的元素 if someContainer.count != anotherContainer.count { return false } - // Check each pair of items to see if they are equivalent. + // 检查每一对元素是否相等 for i in 0..