Skip to content

Commit 826ed33

Browse files
committed
Simplified CharacterSet's == func
1 parent 02210e0 commit 826ed33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/CharacterSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgeb
475475

476476
/// Returns true if the two `CharacterSet`s are equal.
477477
public static func ==(lhs : CharacterSet, rhs: CharacterSet) -> Bool {
478-
return lhs._mapUnmanaged { l in rhs._mapUnmanaged { r in l.isEqual(r) } }
478+
return lhs._mapUnmanaged { $0.isEqual(rhs) }
479479
}
480480
}
481481

0 commit comments

Comments
 (0)