Skip to content

Commit 7cd41df

Browse files
committed
[stdlib] Make PartialRangeFrom.contains transparent
Kudos to @benrimmington for spotting this
1 parent d231213 commit 7cd41df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Range.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ extension PartialRangeFrom: RangeExpression {
682682
) -> Range<Bound> where C.Index == Bound {
683683
return self.lowerBound..<collection.endIndex
684684
}
685-
@inlinable // trivial-implementation
685+
@_transparent
686686
public func contains(_ element: Bound) -> Bool {
687687
return lowerBound <= element
688688
}

0 commit comments

Comments
 (0)