diff --git a/new.go b/new.go index 08d5451..0a96b31 100644 --- a/new.go +++ b/new.go @@ -1,5 +1,6 @@ package new +// New allocates the thing on the heap and returns a non-nil pointer to it. func New[T any](thing T) *T { return &thing }