Преглед на файлове

add comment (#2163)

* add comment

* typo
RikiyaFujii преди 5 години
родител
ревизия
50c61291de
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      association.go

+ 1 - 0
association.go

@@ -368,6 +368,7 @@ func (association *Association) saveAssociations(values ...interface{}) *Associa
 	return association
 }
 
+// setErr set error when the error is not nil. And return Association.
 func (association *Association) setErr(err error) *Association {
 	if err != nil {
 		association.Error = err