Fix a logic error in an example.

PiperOrigin-RevId: 489255983
This commit is contained in:
Gaal Yahas 2022-11-17 19:03:10 +00:00
parent d976b652ae
commit 15c7fa0198

View File

@ -3371,7 +3371,7 @@ some other error, then consider using `cmp` with [`cmpopts.EquateErrors`].
>
> ```go
> // Good:
> gotErr := f(test.input) == nil
> gotErr := f(test.input) != nil
> if gotErr != test.wantErr {
> t.Errorf("f(%q) returned err = %v, want error presence = %v", test.input, gotErr, test.wantErr)
> }