diff --git a/mlir/examples/toy/Ch1/include/toy/Parser.h b/mlir/examples/toy/Ch1/include/toy/Parser.h --- a/mlir/examples/toy/Ch1/include/toy/Parser.h +++ b/mlir/examples/toy/Ch1/include/toy/Parser.h @@ -428,7 +428,7 @@ } while (true); } if (lexer.getCurToken() != ')') - return parseError("}", "to end function prototype"); + return parseError(")", "to end function prototype"); // success. lexer.consume(Token(')')); diff --git a/mlir/examples/toy/Ch2/include/toy/Parser.h b/mlir/examples/toy/Ch2/include/toy/Parser.h --- a/mlir/examples/toy/Ch2/include/toy/Parser.h +++ b/mlir/examples/toy/Ch2/include/toy/Parser.h @@ -428,7 +428,7 @@ } while (true); } if (lexer.getCurToken() != ')') - return parseError("}", "to end function prototype"); + return parseError(")", "to end function prototype"); // success. lexer.consume(Token(')')); diff --git a/mlir/examples/toy/Ch3/include/toy/Parser.h b/mlir/examples/toy/Ch3/include/toy/Parser.h --- a/mlir/examples/toy/Ch3/include/toy/Parser.h +++ b/mlir/examples/toy/Ch3/include/toy/Parser.h @@ -428,7 +428,7 @@ } while (true); } if (lexer.getCurToken() != ')') - return parseError("}", "to end function prototype"); + return parseError(")", "to end function prototype"); // success. lexer.consume(Token(')')); diff --git a/mlir/examples/toy/Ch4/include/toy/Parser.h b/mlir/examples/toy/Ch4/include/toy/Parser.h --- a/mlir/examples/toy/Ch4/include/toy/Parser.h +++ b/mlir/examples/toy/Ch4/include/toy/Parser.h @@ -428,7 +428,7 @@ } while (true); } if (lexer.getCurToken() != ')') - return parseError("}", "to end function prototype"); + return parseError(")", "to end function prototype"); // success. lexer.consume(Token(')')); diff --git a/mlir/examples/toy/Ch5/include/toy/Parser.h b/mlir/examples/toy/Ch5/include/toy/Parser.h --- a/mlir/examples/toy/Ch5/include/toy/Parser.h +++ b/mlir/examples/toy/Ch5/include/toy/Parser.h @@ -428,7 +428,7 @@ } while (true); } if (lexer.getCurToken() != ')') - return parseError("}", "to end function prototype"); + return parseError(")", "to end function prototype"); // success. lexer.consume(Token(')')); diff --git a/mlir/examples/toy/Ch6/include/toy/Parser.h b/mlir/examples/toy/Ch6/include/toy/Parser.h --- a/mlir/examples/toy/Ch6/include/toy/Parser.h +++ b/mlir/examples/toy/Ch6/include/toy/Parser.h @@ -428,7 +428,7 @@ } while (true); } if (lexer.getCurToken() != ')') - return parseError("}", "to end function prototype"); + return parseError(")", "to end function prototype"); // success. lexer.consume(Token(')')); diff --git a/mlir/examples/toy/Ch7/include/toy/Parser.h b/mlir/examples/toy/Ch7/include/toy/Parser.h --- a/mlir/examples/toy/Ch7/include/toy/Parser.h +++ b/mlir/examples/toy/Ch7/include/toy/Parser.h @@ -583,7 +583,7 @@ } while (true); } if (lexer.getCurToken() != ')') - return parseError("}", "to end function prototype"); + return parseError(")", "to end function prototype"); // success. lexer.consume(Token(')'));