Skip to content

Commit 53e0987

Browse files
Robert PietaRobert Pieta
authored andcommitted
Added comments
1 parent df1901c commit 53e0987

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Foundation/NSOrderedSet.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ extension NSOrderedSet {
210210
}
211211

212212
open func isSubset(of other: NSOrderedSet) -> Bool {
213+
// If self is larger then self cannot be a subset of other
213214
if count > other.count {
214215
return false
215216
}
@@ -223,6 +224,7 @@ extension NSOrderedSet {
223224
}
224225

225226
open func isSubset(of set: Set<AnyHashable>) -> Bool {
227+
// If self is larger then self cannot be a subset of set
226228
if count > set.count {
227229
return false
228230
}

Foundation/NSSet.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ extension NSSet {
208208
}
209209

210210
open func isSubset(of otherSet: Set<AnyHashable>) -> Bool {
211+
// If self is larger then self cannot be a subset of otherSet
211212
if count > otherSet.count {
212213
return false
213214
}

0 commit comments

Comments
 (0)