From 11053f7d1f2b9596324836eb86afd6b0f3fdc7bf Mon Sep 17 00:00:00 2001 From: slashformotion Date: Mon, 22 Dec 2025 18:48:19 +0100 Subject: [PATCH] chore: fix function name in comment backported from https://github.com/jmoiron/sqlx/pull/876 by https://github.com/cuishuang --- sqlx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx.go b/sqlx.go index 341bccc..e3de36c 100644 --- a/sqlx.go +++ b/sqlx.go @@ -1225,7 +1225,7 @@ func baseType(t reflect.Type, expected reflect.Kind) (reflect.Type, error) { return t, nil } -// fieldsByName fills a values interface with fields from the passed value based +// fieldsByTraversal fills a values interface with fields from the passed value based // on the traversals in int. If ptrs is true, return addresses instead of values. // We write this instead of using FieldsByName to save allocations and map lookups // when iterating over many rows. Empty traversals will get an interface pointer.