1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-30 08:30:33 +02:00

Fix typo in expect message (#2420)

This commit is contained in:
Martin Geisler 2024-10-16 11:28:25 +02:00 committed by GitHub
parent 1c3e4648e4
commit dcdf3915ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -194,7 +194,7 @@ fn parse(input: &str) -> Expression {
};
let expr = match tok {
Token::Number(num) => {
let v = num.parse().expect("Invalid 32-bit integer'");
let v = num.parse().expect("Invalid 32-bit integer");
Expression::Number(v)
}
Token::Identifier(ident) => Expression::Var(ident),