Skip to content

Commit 91c80f1

Browse files
authored
Merge pull request #2493 from ferhatelmas/various-godoc
Fix various godoc comments
2 parents 5170f4e + f058a1f commit 91c80f1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pgtype/pgtype.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ func (plan *pointerEmptyInterfaceScanPlan) Scan(src []byte, dst any) error {
901901
return nil
902902
}
903903

904-
// TryWrapStructPlan tries to wrap a struct with a wrapper that implements CompositeIndexGetter.
904+
// TryWrapStructScanPlan tries to wrap a struct with a wrapper that implements CompositeIndexGetter.
905905
func TryWrapStructScanPlan(target any) (plan WrappedScanPlanNextSetter, nextValue any, ok bool) {
906906
targetValue := reflect.ValueOf(target)
907907
if targetValue.Kind() != reflect.Ptr {
@@ -1751,7 +1751,7 @@ func (plan *wrapFmtStringerEncodePlan) Encode(value any, buf []byte) (newBuf []b
17511751
return plan.next.Encode(fmtStringerWrapper{value.(fmt.Stringer)}, buf)
17521752
}
17531753

1754-
// TryWrapStructPlan tries to wrap a struct with a wrapper that implements CompositeIndexGetter.
1754+
// TryWrapStructEncodePlan tries to wrap a struct with a wrapper that implements CompositeIndexGetter.
17551755
func TryWrapStructEncodePlan(value any) (plan WrappedEncodePlanNextSetter, nextValue any, ok bool) {
17561756
if _, ok := value.(driver.Valuer); ok {
17571757
return nil, nil, false

rows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ func RowTo[T any](row CollectableRow) (T, error) {
529529
return value, err
530530
}
531531

532-
// RowTo returns a the address of a T scanned from row.
532+
// RowToAddrOf returns the address of a T scanned from row.
533533
func RowToAddrOf[T any](row CollectableRow) (*T, error) {
534534
var value T
535535
err := row.Scan(&value)

0 commit comments

Comments
 (0)