We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae9fb6 commit cf85dabCopy full SHA for cf85dab
nullable.go
@@ -73,7 +73,7 @@ func (t NullableAttr[T]) IsNull() bool {
73
return foundNull
74
}
75
76
-// SetNull indicate that the field was sent, and had a value of `null`
+// SetNull sets the value to an explicit `null`
77
func (t *NullableAttr[T]) SetNull() {
78
var empty T
79
*t = map[bool]T{false: empty}
@@ -84,7 +84,7 @@ func (t NullableAttr[T]) IsSpecified() bool {
84
return len(t) != 0
85
86
87
-// SetUnspecified indicate whether the field was sent
+// SetUnspecified sets the value to be absent from the serialized payload
88
func (t *NullableAttr[T]) SetUnspecified() {
89
*t = map[bool]T{}
90
0 commit comments