diff --git a/README.md b/README.md index 0a88ce22..c109baac 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) ## Quick Start -1.Create a database engine just like sql.OpenDB (for example: mysql) +1.Create a database engine just like sql.Open (for example: mysql) engine := xorm.Create("mysql", "root:123@/test?charset=utf8") diff --git a/README_CN.md b/README_CN.md index dcdaa212..48138065 100644 --- a/README_CN.md +++ b/README_CN.md @@ -21,7 +21,7 @@ SQLite: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) ## 快速开始 -1.创建数据库引擎,这个函数的参数和sql.OpenDB相同,但不会立即创建连接 (例如: mysql) +1.创建数据库引擎,这个函数的参数和sql.Open相同,但不会立即创建连接 (例如: mysql) engine := xorm.Create("mysql", "root:123@/test?charset=utf8")