Skip to content

Commit e123c06

Browse files
netramalictrombley
andcommitted
Update nullable.go
Co-authored-by: Chris Trombley <[email protected]>
1 parent 8c58fdb commit e123c06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nullable.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ func (t *NullableRelationship[T]) Set(value T) {
152152
*t = map[bool]T{true: value}
153153
}
154154

155-
// Set sets the underlying value to a given value
155+
// SetInterface sets the underlying value from an empty interface,
156+
// performing a type assertion to T.
156157
func (t *NullableRelationship[T]) SetInterface(value interface{}) {
157158
t.Set(value.(T))
158159
}

0 commit comments

Comments
 (0)