From f869bc8371de29b93b654e00f7138eb241a16c08 Mon Sep 17 00:00:00 2001 From: Myeongseon Choi Date: Wed, 13 Jul 2022 17:31:21 +0900 Subject: [PATCH] Change error msg "can't" to "cannot" --- src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/error.rs b/src/error.rs index 58b8c6d..38740aa 100644 --- a/src/error.rs +++ b/src/error.rs @@ -40,13 +40,13 @@ pub enum CompileErrorType { impl fmt::Display for CompileErrorType { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { - CompileErrorType::Assign(target) => write!(f, "can't assign to {}", target), - CompileErrorType::Delete(target) => write!(f, "can't delete {}", target), + CompileErrorType::Assign(target) => write!(f, "cannot assign to {}", target), + CompileErrorType::Delete(target) => write!(f, "cannot delete {}", target), CompileErrorType::SyntaxError(err) => write!(f, "{}", err.as_str()), CompileErrorType::MultipleStarArgs => { write!(f, "two starred expressions in assignment") } - CompileErrorType::InvalidStarExpr => write!(f, "can't use starred expression here"), + CompileErrorType::InvalidStarExpr => write!(f, "cannot use starred expression here"), CompileErrorType::InvalidBreak => write!(f, "'break' outside loop"), CompileErrorType::InvalidContinue => write!(f, "'continue' outside loop"), CompileErrorType::InvalidReturn => write!(f, "'return' outside function"),