diff --git a/source/chapter1/03_a_swift_tour.md b/source/chapter1/03_a_swift_tour.md index 32897c38..b918ce21 100755 --- a/source/chapter1/03_a_swift_tour.md +++ b/source/chapter1/03_a_swift_tour.md @@ -788,15 +788,16 @@ possibleInteger = .some(100) ```swift func anyCommonElements(_ lhs: T, _ rhs: U) -> Bool - where T.Iterator.Element: Equatable, T.Iterator.Element == U.Iterator.Element { - for lhsItem in lhs { - for rhsItem in rhs { - if lhsItem == rhsItem { - return true - } + where T.Element: Equatable, T.Element == U.Element +{ + for lhsItem in lhs { + for rhsItem in rhs { + if lhsItem == rhsItem { + return true } } - return false + } + return false } anyCommonElements([1, 2, 3], [3]) ```