Skip to content

Commit 70dc9e6

Browse files
committed
delegate to asUnsafeZeroWidthParser()
1 parent 5cf0b74 commit 70dc9e6

File tree

1 file changed

+1
-1
lines changed
  • dot-parse/src/main/java/com/google/common/labs/parse

1 file changed

+1
-1
lines changed

dot-parse/src/main/java/com/google/common/labs/parse/Parser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ <V> MatchResult.Failure<V> expecting(String name, int at) {
15511551
<V> MatchResult.Failure<V> failAt(int at, String message, Object... args) {
15521552
var failure = new MatchResult.Failure<V>(at, message, args);
15531553
// prefer the farthest then the most recent failure
1554-
if (farthestFailure == null || at >= farthestFailure.at()) {
1554+
if (farthestFailure == null || failure.at() >= farthestFailure.at()) {
15551555
farthestFailure = failure;
15561556
}
15571557
return failure;

0 commit comments

Comments
 (0)