We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Index
1 parent 1f5a2ba commit 80a7aefCopy full SHA for 80a7aef
stdlib/public/core/Span/Span.swift
@@ -544,7 +544,9 @@ extension Span where Element: ~Copyable {
544
/// - Complexity: O(1)
545
@_alwaysEmitIntoClient
546
@lifetime(self)
547
- public func _extracting(_ bounds: some RangeExpression<Int>) -> Self {
+ public func _extracting(
548
+ _ bounds: some RangeExpression<Index>
549
+ ) -> Self {
550
_extracting(bounds.relative(to: indices))
551
}
552
@@ -567,7 +569,7 @@ extension Span where Element: ~Copyable {
567
569
568
570
571
public func _extracting(
- unchecked bounds: some RangeExpression<Int>
572
+ unchecked bounds: some RangeExpression<Index>
573
) -> Self {
574
_extracting(unchecked: bounds.relative(to: indices))
575
0 commit comments