Skip to content

Commit 3e1f665

Browse files
authored
Apply suggestions from code review
1 parent 59189f0 commit 3e1f665

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/core/Span/RawSpan.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ extension RawSpan {
441441
unchecked bounds: ClosedRange<Int>
442442
) -> Self {
443443
let range = Range(
444-
_uncheckedBounds: (bounds.lowerBound, bounds.upperBound&+1)
444+
_uncheckedBounds: (bounds.lowerBound, bounds.upperBound + 1)
445445
)
446446
return unsafe _extracting(unchecked: range)
447447
}

stdlib/public/core/Span/Span.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ extension Span where Element: ~Copyable {
591591
unchecked bounds: ClosedRange<Index>
592592
) -> Self {
593593
let range = Range(
594-
_uncheckedBounds: (bounds.lowerBound, bounds.upperBound&+1)
594+
_uncheckedBounds: (bounds.lowerBound, bounds.upperBound + 1)
595595
)
596596
return unsafe _extracting(unchecked: range)
597597
}

0 commit comments

Comments
 (0)