Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit a8f0a71

Browse files
wangzhionelunny
authored andcommitted
Update README_CN.md (#1179)
Fix Transaction param by README_CN.md
1 parent 401f4ee commit a8f0a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ return session.Commit()
365365
* 事物的简写方法
366366

367367
```Go
368-
res, err := engine.Transaction(func(sess *xorm.Session) (interface{}, error) {
368+
res, err := engine.Transaction(func(session *xorm.Session) (interface{}, error) {
369369
user1 := Userinfo{Username: "xiaoxiao", Departname: "dev", Alias: "lunny", Created: time.Now()}
370370
if _, err := session.Insert(&user1); err != nil {
371371
return nil, err

0 commit comments

Comments
 (0)