Skip to content

Commit 7fa2459

Browse files
netramalictrombley
andauthored
Update nullable.go
Co-authored-by: Chris Trombley <[email protected]>
1 parent 362e082 commit 7fa2459

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nullable.go

Lines changed: 2 additions & 1 deletion
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)