From 265db668ed4dc2975d3f96e5e694ceee4cd5aa35 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 13 Apr 2024 02:57:29 -0500 Subject: [PATCH] cl-parser: Reword an error message --- cl-parser/src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl-parser/src/error.rs b/cl-parser/src/error.rs index 18ece96..6b628f8 100644 --- a/cl-parser/src/error.rs +++ b/cl-parser/src/error.rs @@ -130,7 +130,7 @@ impl Display for ErrorKind { ErrorKind::UnmatchedSquareBrackets => write!(f, "Unmatched square brackets"), ErrorKind::Unexpected(t) => write!(f, "Encountered unexpected token `{t}`"), ErrorKind::Expected { want: e, got: g } => { - write!(f, "Expected {e}, but got {g}") + write!(f, "Expected `{e}`, got `{g}`") } ErrorKind::Nothing => write!(f, "Nothing found"), ErrorKind::Todo => write!(f, "TODO:"),