update API comments

This commit is contained in:
Nash Tsai 2013-12-26 14:53:20 +08:00
parent 6bc64c8fe6
commit 6269596915
2 changed files with 2 additions and 2 deletions

View File

@ -933,7 +933,7 @@ func (engine *Engine) Iterate(bean interface{}, fun IterFunc) error {
return session.Iterate(bean, fun)
}
// Similar to Iterate(), return a forward Iterator object for iterating record by record, bean's non-empty fields
// Return sql.Rows compatible Rows obj, as a forward Iterator object for iterating record by record, bean's non-empty fields
// are conditions.
func (engine *Engine) Rows(bean interface{}) (*Rows, error) {
session := engine.NewSession()

View File

@ -818,7 +818,7 @@ func (session *Session) cacheFind(t reflect.Type, sql string, rowsSlicePtr inter
// IterFunc only use by Iterate
type IterFunc func(idx int, bean interface{}) error
// Similar to Iterate(), return a forward Iterator object for iterating record by record, bean's non-empty fields
// Return sql.Rows compatible Rows obj, as a forward Iterator object for iterating record by record, bean's non-empty fields
// are conditions.
func (session *Session) Rows(bean interface{}) (*Rows, error) {
return newRows(session, bean)