Skip to content

Commit cb8cbe1

Browse files
authored
Merge pull request #13702 from apple/index-distance-available
Fix an @available attribute
2 parents 11f98b2 + f764ff3 commit cb8cbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Collection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ public protocol Collection: Sequence where SubSequence: Collection {
777777
/// `endIndex`.
778778
func formIndex(after i: inout Index)
779779

780-
@available(swift, deprecated, message: "all index distances are now of type Int")
780+
@available(*, deprecated, message: "all index distances are now of type Int")
781781
typealias IndexDistance = Int
782782
}
783783

0 commit comments

Comments
 (0)