Update the Swift version to 6.0 from 5.11

This commit is contained in:
Mishal Shah
2024-02-17 09:58:20 -08:00
parent e1fdb00c66
commit af112c1591
75 changed files with 362 additions and 362 deletions

View File

@@ -232,7 +232,7 @@ extension Collection {
/// returns `true`.
///
/// - Complexity: O(*n*), where *n* is the length of the collection.
@available(SwiftStdlib 5.11, *)
@available(SwiftStdlib 6.0, *)
@inlinable
public func indices(
where predicate: (Element) throws -> Bool
@@ -269,7 +269,7 @@ extension Collection where Element: Equatable {
/// `element`.
///
/// - Complexity: O(*n*), where *n* is the length of the collection.
@available(SwiftStdlib 5.11, *)
@available(SwiftStdlib 6.0, *)
@inlinable
public func indices(of element: Element) -> RangeSet<Index> {
indices(where: { $0 == element })