Skip to content

Commit 36b1612

Browse files
committed
refactoring
1 parent 630ca64 commit 36b1612

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
@@ -339,7 +339,7 @@ extension Processor {
339339
// If we have a quantifier save point, move the next range position into
340340
// pos instead of removing it
341341
if savePoints[idx].isQuantified {
342-
savePoints[idx].takePositionFromRange(input)
342+
savePoints[idx].takePositionFromQuantifiedRange(input)
343343
(pc, pos, stackEnd, capEnds, intRegisters, posRegisters) = savePoints[idx].destructure
344344
} else {
345345
(pc, pos, stackEnd, capEnds, intRegisters, posRegisters) = savePoints.removeLast().destructure

0 commit comments

Comments
 (0)