Merge pull request #730 from gaal/go

Go: Fix a logic error in an example.
This commit is contained in:
Gaal Yahas authored and GitHub committed 2022-11-17 21:57:32 +02:00
commit 2d5b76e3f6
1 file changed
+1 -1
+1 -1
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)
> }