Skip to content

Commit 89956e7

Browse files
committed
[stdlib] use the Index typealias in Span
- these were missed in a previous code change
1 parent 6802d22 commit 89956e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/public/core/Span/Span.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,9 @@ extension Span where Element: ~Copyable {
558558
/// - Complexity: O(1)
559559
@_alwaysEmitIntoClient
560560
@lifetime(self)
561-
public func _extracting(_ bounds: some RangeExpression<Int>) -> Self {
561+
public func _extracting(
562+
_ bounds: some RangeExpression<Index>
563+
) -> Self {
562564
_extracting(bounds.relative(to: indices))
563565
}
564566

@@ -581,7 +583,7 @@ extension Span where Element: ~Copyable {
581583
@_alwaysEmitIntoClient
582584
@lifetime(self)
583585
public func _extracting(
584-
unchecked bounds: some RangeExpression<Int>
586+
unchecked bounds: some RangeExpression<Index>
585587
) -> Self {
586588
unsafe _extracting(unchecked: bounds.relative(to: indices))
587589
}

0 commit comments

Comments
 (0)