Skip to content

Commit

Permalink
feat: resolve error
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsmejkal committed May 2, 2024
1 parent 3c3f283 commit c54bd7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plumber.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ type D[T any] struct {

// String return names of underlaying type
func (d *D[T]) String() string {
rv := reflect.TypeOf(d.value)
return rv.String()
var v T
return reflect.TypeOf(&v).Elem().String()
}

// define sets resolution function but only once
Expand Down

0 comments on commit c54bd7b

Please sign in to comment.