doc: document ErrRecordNotFound error more clear (#2015)

* doc: document ErrRecordNotFound error more clear

* fix goimports

* fix goimports

* undo change
This commit is contained in:
Eason Lin 2018-08-19 07:14:33 +08:00 committed by Jinzhu
parent 53995294ef
commit 32455088f2
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import (
)
var (
// ErrRecordNotFound record not found error, happens when haven't find any matched data when looking up with a struct
// ErrRecordNotFound record not found error, happens when only haven't find any matched data when looking up with a struct, finding a slice won't return this error
ErrRecordNotFound = errors.New("record not found")
// ErrInvalidSQL invalid SQL error, happens when you passed invalid SQL
ErrInvalidSQL = errors.New("invalid SQL")