From 0a9641db89cc4a38d9792d0ee249868e3543d964 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Wed, 1 Nov 2023 18:20:44 -0700 Subject: [PATCH] correction --- nullable_marshaljson.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nullable_marshaljson.go b/nullable_marshaljson.go index bd3fe64..e1f9df8 100644 --- a/nullable_marshaljson.go +++ b/nullable_marshaljson.go @@ -19,7 +19,7 @@ func (receiver Nullable[T]) MarshalJSON() ([]byte, error) { } if receiver.isnothing() { - return nil, erorr.Errorf("nul: cannot marshal opt.Nothing[%T]() into JSON", receiver.value) + return nil, erorr.Errorf("nul: cannot marshal nul.Nothing[%T]() into JSON", receiver.value) } if receiver.isnull {