GP-0: Fixing typo in sleigh error print (Closes #4597)

This commit is contained in:
Ryan Kurtz 2022-09-14 11:37:50 -04:00
parent 145abee008
commit e835f91e50

View file

@ -153,7 +153,7 @@ public class TokenPattern {
else if (tok2.getRightEllipsis()) {
if (tok2.toklist.size() != minsize) {
throw new SleighError(String.format("Mismatched pattern sizes -- %d vs %d",
tok1.toklist.size(), minsize), location);
tok2.toklist.size(), minsize), location);
}
else if (tok1.toklist.size() == tok2.toklist.size()) {
throw new SleighError("Pattern size cannot vary (missing ... ?)", location);