blueloveTH 1 년 전
부모
커밋
068ec948ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/compiler/compiler.c

+ 1 - 1
src/compiler/compiler.c

@@ -1401,7 +1401,7 @@ static Error* parse_expression(Compiler* self, int precedence, bool allow_slice)
         advance();
         PrattCallback infix = rules[op].infix;
         if(infix == NULL){
-            return SyntaxError(self, "expected an expression, got %s", TokenSymbols[op]);
+            return SyntaxError(self, "expected an infix operator, got %s", TokenSymbols[op]);
         }
         check(infix(self));
     }