瀏覽代碼

Fix typo in error

gingerBill 7 年之前
父節點
當前提交
1553421e1a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/parser.cpp

+ 1 - 1
src/parser.cpp

@@ -3989,7 +3989,7 @@ AstNode *parse_defer_stmt(AstFile *f) {
 		stmt = stmt->DeferStmt.stmt;
 		stmt = stmt->DeferStmt.stmt;
 		break;
 		break;
 	case AstNode_ReturnStmt:
 	case AstNode_ReturnStmt:
-		syntax_error(token, "You cannot a return statement");
+		syntax_error(token, "You cannot defer a return statement");
 		break;
 		break;
 	}
 	}