File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public struct Substring : StringProtocol {
57
57
let result = _slice.index(i, offsetBy: n)
58
58
// FIXME(strings): slice types currently lack necessary bound checks
59
59
_precondition(
60
- (_slice._startIndex ..< _slice.endIndex).contains(result),
60
+ (_slice._startIndex ... _slice.endIndex).contains(result),
61
61
"Operation results in an invalid index")
62
62
return result
63
63
}
@@ -68,7 +68,7 @@ public struct Substring : StringProtocol {
68
68
let result = _slice.index(i, offsetBy: n, limitedBy: limit)
69
69
// FIXME(strings): slice types currently lack necessary bound checks
70
70
_precondition(result.map {
71
- (_slice._startIndex ..< _slice.endIndex).contains($0)
71
+ (_slice._startIndex ... _slice.endIndex).contains($0)
72
72
} ?? true,
73
73
"Operation results in an invalid index")
74
74
return result
You can’t perform that action at this time.
0 commit comments