Skip to content

Commit f3e4b3d

Browse files
committed
fix copypasta error
1 parent cf9f768 commit f3e4b3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Foundation/IndexSet.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ public struct IndexSet : ReferenceConvertible, Equatable, BidirectionalCollectio
359359
return _handle.map { $0.contains(in: _toNSRange(range)) }
360360
}
361361

362-
/// Returns `true` if `self` intersects any of the integers in `range`.
363-
public func intersects<R: RangeExpression>(integersIn range: R) -> Bool where R.Bound == Element {
364-
return self.intersects(integersIn: range.relative(to: 0..<Int.max))
362+
/// Returns `true` if `self` contains all of the integers in `range`.
363+
public func contains<R: RangeExpression>(integersIn range: R) -> Bool where R.Bound == Element {
364+
return self.contains(integersIn: range.relative(to: 0..<Int.max))
365365
}
366366

367367
/// Returns `true` if `self` contains all of the integers in `indexSet`.

0 commit comments

Comments
 (0)