Skip to content

Commit 56040ef

Browse files
authored
Merge pull request #3494 from natecook1000/nc-indexset-contains
Fix IndexSet.contains(integersIn:) documentation
2 parents 968f1b4 + f54ad5a commit 56040ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SDK/Foundation/IndexSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ public struct IndexSet : ReferenceConvertible, Equatable, BidirectionalCollectio
414414
public func contains(integersIn range: CountableClosedRange<Element>) -> Bool { return self.contains(integersIn: Range(range)) }
415415

416416

417-
/// Returns `true` if `self` contains any of the integers in `indexSet`.
417+
/// Returns `true` if `self` contains all of the integers in `indexSet`.
418418
public func contains(integersIn indexSet: IndexSet) -> Bool {
419419
return _handle.map { $0.contains(indexSet) }
420420
}

0 commit comments

Comments
 (0)