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
Span
1 parent fbaaf53 commit d05b334Copy full SHA for d05b334
stdlib/public/core/Span/Span.swift
@@ -545,7 +545,9 @@ extension Span where Element: ~Copyable {
545
/// - Complexity: O(1)
546
@_alwaysEmitIntoClient
547
@lifetime(self)
548
- public func _extracting(_ bounds: some RangeExpression<Int>) -> Self {
+ public func _extracting(
549
+ _ bounds: some RangeExpression<Index>
550
+ ) -> Self {
551
_extracting(bounds.relative(to: indices))
552
}
553
@@ -568,7 +570,7 @@ extension Span where Element: ~Copyable {
568
570
569
571
572
public func _extracting(
- unchecked bounds: some RangeExpression<Int>
573
+ unchecked bounds: some RangeExpression<Index>
574
) -> Self {
575
unsafe _extracting(unchecked: bounds.relative(to: indices))
576
0 commit comments