mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge branch 'master' of https://github.com/apple/swift
This commit is contained in:
@@ -429,11 +429,11 @@ public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgeb
|
||||
public func isSuperset(of other: CharacterSet) -> Bool {
|
||||
return _mapUnmanaged { $0.isSuperset(of: other) }
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if the two `CharacterSet`s are equal.
|
||||
public func ==(lhs : CharacterSet, rhs: CharacterSet) -> Bool {
|
||||
return lhs._wrapped.isEqual(rhs as NSCharacterSet)
|
||||
/// Returns true if the two `CharacterSet`s are equal.
|
||||
public static func ==(lhs : CharacterSet, rhs: CharacterSet) -> Bool {
|
||||
return lhs._wrapped.isEqual(rhs as NSCharacterSet)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user