Fix a logic error in an example.

PiperOrigin-RevId: 489255983
pull/730/head
Gaal Yahas 2022-11-17 19:03:10 +00:00
parent d976b652ae
commit 15c7fa0198
1 changed files with 1 additions and 1 deletions

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)
> }