refine comments for package core (#5014)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments

* refine comments

* Update db.go

* refine comments for core
This commit is contained in:
Regan Yue
2022-07-19 17:17:06 +08:00
committed by GitHub
parent 80e6f3d42c
commit 907956fbcf
5 changed files with 9 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ import (
// code, msg
const errFmt = "ERROR-%d, %s"
// Err returns an error representing c and msg. If c is OK, returns nil.
// Error returns an error representing c and msg. If c is OK, returns nil.
func Error(c Code, msg string) error {
return fmt.Errorf(errFmt, c.Code(), msg)
}