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 3474462 commit 3c88b95Copy full SHA for 3c88b95
packages/param/null.go
@@ -5,7 +5,7 @@ import "github.com/openai/openai-go/internal/encoding/json/sentinel"
5
// NullMap returns a non-nil map with a length of 0.
6
// When used with [MarshalObject] or [MarshalUnion], it will be marshaled as null.
7
//
8
-// It is unspecified behavior to mutate the slice returned by [NullSlice].
+// It is unspecified behavior to mutate the map returned by [NullMap].
9
func NullMap[MapT ~map[string]T, T any]() MapT {
10
return sentinel.NewNullSentinel(func() MapT { return make(MapT, 1) })
11
}
0 commit comments