diff --git a/nill.go b/nill.go index 3f42f54..02f7f81 100644 --- a/nill.go +++ b/nill.go @@ -1,10 +1,10 @@ package nill -type Type[T comparable] struct { +type Type[T any] struct { Valid bool Value T } -func New[T comparable](value T) Type[T] { +func New[T any](value T) Type[T] { return Type[T]{Valid: true, Value: value} }