mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
index(n, stepsFrom: i)
M-x findr-query-replace \<advance(\([^:]+?\),\([ ]+\)by: *\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,\(?:[ ]+\)limit: *\(?:[^()]*\|[^()]+([^()]*)[^()]*\)\)?) index(\3,\2stepsFrom: \1\4)
This commit is contained in:
@@ -154,7 +154,7 @@ ${orderingRequirementForComparable}
|
||||
return unsafeBufferPivot - bufferPointer.startIndex
|
||||
}
|
||||
if let offset = maybeOffset {
|
||||
return advance(startIndex, by: numericCast(offset))
|
||||
return index(numericCast(offset), stepsFrom: startIndex)
|
||||
}
|
||||
|
||||
% if preds:
|
||||
|
||||
Reference in New Issue
Block a user