From 13995259aae5e7a0e89bb009a2623291f7926a85 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 26 Feb 2024 15:35:07 -0600 Subject: [PATCH] parser: use different wording when the expected value was an operator vs an expression --- libconlang/src/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libconlang/src/parser.rs b/libconlang/src/parser.rs index 6155e15..0af7046 100644 --- a/libconlang/src/parser.rs +++ b/libconlang/src/parser.rs @@ -192,11 +192,11 @@ pub mod error { Parsing::Expr => "an expression", Parsing::ExprKind => "an expression", Parsing::Assign => "an assignment", - Parsing::AssignKind => "an assignment", + Parsing::AssignKind => "an assignment operator", Parsing::Binary => "a binary expression", - Parsing::BinaryKind => "a binary expression", + Parsing::BinaryKind => "a binary operator", Parsing::Unary => "a unary expression", - Parsing::UnaryKind => "a unary expression", + Parsing::UnaryKind => "a unary operator", Parsing::Index => "an indexing expression", Parsing::Call => "a call expression", Parsing::Member => "a member access expression",