mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-10-13 20:15:19 +00:00
Merge pull request #730 from gaal/go
Go: Fix a logic error in an example.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
> }
|
||||
|
||||
Reference in new issue
Block a user