From 76e5ad0f0f61273c2f847f5c26305b5b5bc62433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Wed, 30 Sep 2020 22:12:00 -0300 Subject: [PATCH] Improve comment on FillSliceWith() helper func --- kiss_orm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss_orm.go b/kiss_orm.go index 80f5195..3f78445 100644 --- a/kiss_orm.go +++ b/kiss_orm.go @@ -311,8 +311,8 @@ func FillStructWith(entity interface{}, dbRow map[string]interface{}) error { // FillSliceWith is meant to be used on unit tests to mock // the response from the database. // -// The first argument is any struct you are passing to a kissorm func, -// and the second is a map representing a database row you want +// The first argument is any slice of structs you are passing to a kissorm func, +// and the second is a slice of maps representing the database rows you want // to use to update this struct. func FillSliceWith(entities interface{}, dbRows []map[string]interface{}) error { slicePtrValue := reflect.ValueOf(entities)