mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Fix a logic error in an example.
PiperOrigin-RevId: 489255983
This commit is contained in:
parent
d976b652ae
commit
15c7fa0198
|
@ -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)
|
||||
> }
|
||||
|
|
Loading…
Reference in New Issue
Block a user