@@ -40,13 +40,13 @@ pub enum CompileErrorType {
4040impl fmt:: Display for CompileErrorType {
4141 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
4242 match self {
43- CompileErrorType :: Assign ( target) => write ! ( f, "can't assign to {}" , target) ,
44- CompileErrorType :: Delete ( target) => write ! ( f, "can't delete {}" , target) ,
43+ CompileErrorType :: Assign ( target) => write ! ( f, "cannot assign to {}" , target) ,
44+ CompileErrorType :: Delete ( target) => write ! ( f, "cannot delete {}" , target) ,
4545 CompileErrorType :: SyntaxError ( err) => write ! ( f, "{}" , err. as_str( ) ) ,
4646 CompileErrorType :: MultipleStarArgs => {
4747 write ! ( f, "two starred expressions in assignment" )
4848 }
49- CompileErrorType :: InvalidStarExpr => write ! ( f, "can't use starred expression here" ) ,
49+ CompileErrorType :: InvalidStarExpr => write ! ( f, "cannot use starred expression here" ) ,
5050 CompileErrorType :: InvalidBreak => write ! ( f, "'break' outside loop" ) ,
5151 CompileErrorType :: InvalidContinue => write ! ( f, "'continue' outside loop" ) ,
5252 CompileErrorType :: InvalidReturn => write ! ( f, "'return' outside function" ) ,
0 commit comments