Skip to content

Commit cf85dab

Browse files
chore: incorporate review feedback
Co-authored-by: Nick Fagerlund <[email protected]>
1 parent eae9fb6 commit cf85dab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nullable.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (t NullableAttr[T]) IsNull() bool {
7373
return foundNull
7474
}
7575

76-
// SetNull indicate that the field was sent, and had a value of `null`
76+
// SetNull sets the value to an explicit `null`
7777
func (t *NullableAttr[T]) SetNull() {
7878
var empty T
7979
*t = map[bool]T{false: empty}
@@ -84,7 +84,7 @@ func (t NullableAttr[T]) IsSpecified() bool {
8484
return len(t) != 0
8585
}
8686

87-
// SetUnspecified indicate whether the field was sent
87+
// SetUnspecified sets the value to be absent from the serialized payload
8888
func (t *NullableAttr[T]) SetUnspecified() {
8989
*t = map[bool]T{}
9090
}

0 commit comments

Comments
 (0)