diff --git a/knownvalue/null.go b/knownvalue/null.go index f10c5a3f5..eaad10bef 100644 --- a/knownvalue/null.go +++ b/knownvalue/null.go @@ -20,9 +20,9 @@ func (v nullExact) CheckValue(other any) error { return nil } -// String returns the string representation of nil. +// String returns the string representation of null. func (v nullExact) String() string { - return "nil" + return "null" } // NullExact returns a Check for asserting equality nil diff --git a/knownvalue/null_test.go b/knownvalue/null_test.go index 94682ed7b..ddd688df3 100644 --- a/knownvalue/null_test.go +++ b/knownvalue/null_test.go @@ -58,7 +58,7 @@ func TestNullValue_String(t *testing.T) { got := knownvalue.NullExact().String() - if diff := cmp.Diff(got, "nil"); diff != "" { + if diff := cmp.Diff(got, "null"); diff != "" { t.Errorf("unexpected difference: %s", diff) } }