Skip to content

Commit 3c88b95

Browse files
chore: fix documentation of null map
1 parent 3474462 commit 3c88b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/param/null.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "github.com/openai/openai-go/internal/encoding/json/sentinel"
55
// NullMap returns a non-nil map with a length of 0.
66
// When used with [MarshalObject] or [MarshalUnion], it will be marshaled as null.
77
//
8-
// It is unspecified behavior to mutate the slice returned by [NullSlice].
8+
// It is unspecified behavior to mutate the map returned by [NullMap].
99
func NullMap[MapT ~map[string]T, T any]() MapT {
1010
return sentinel.NewNullSentinel(func() MapT { return make(MapT, 1) })
1111
}

0 commit comments

Comments
 (0)