Skip to content

Commit 11053f7

Browse files
chore: fix function name in comment
backported from jmoiron/sqlx#876 by https://github.com/cuishuang
1 parent bfe5d09 commit 11053f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ func baseType(t reflect.Type, expected reflect.Kind) (reflect.Type, error) {
12251225
return t, nil
12261226
}
12271227

1228-
// fieldsByName fills a values interface with fields from the passed value based
1228+
// fieldsByTraversal fills a values interface with fields from the passed value based
12291229
// on the traversals in int. If ptrs is true, return addresses instead of values.
12301230
// We write this instead of using FieldsByName to save allocations and map lookups
12311231
// when iterating over many rows. Empty traversals will get an interface pointer.

0 commit comments

Comments
 (0)