Skip to content

Commit bae30c8

Browse files
committed
refactoring
1 parent b84c411 commit bae30c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/_StringProcessing/Engine/Backtracking.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extension Processor {
5656
}
5757

5858
/// Move the next range position into pos, and removing it from the range
59-
mutating func takePositionFromRange(_ input: Input) {
59+
mutating func takePositionFromQuantifiedRange(_ input: Input) {
6060
assert(isQuantified)
6161
let range = quantifiedRange!
6262
pos = range.upperBound

Sources/_StringProcessing/Engine/Processor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ extension Processor {
338338
// If we have a quantifier save point, move the next range position into
339339
// pos instead of removing it
340340
if savePoints[idx].isQuantified {
341-
savePoints[idx].takePositionFromRange(input)
341+
savePoints[idx].takePositionFromQuantifiedRange(input)
342342
(pc, pos, stackEnd, capEnds, intRegisters, posRegisters) = savePoints[idx].destructure
343343
} else {
344344
(pc, pos, stackEnd, capEnds, intRegisters, posRegisters) = savePoints.removeLast().destructure

0 commit comments

Comments
 (0)