From fbea4448735c49ec80f8782841be85781532b4ea Mon Sep 17 00:00:00 2001 From: Byron Chris Date: Mon, 17 May 2021 19:03:36 +0300 Subject: [PATCH] fix: tests var init --- examples/testing/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/testing/main_test.go b/examples/testing/main_test.go index e409d9d..642a228 100644 --- a/examples/testing/main_test.go +++ b/examples/testing/main_test.go @@ -42,7 +42,7 @@ func TestIntMinBasic(t *testing.T) { // expected outputs are listed in a table and a single loop // walks over them and performs the test logic. func TestIntMinTableDriven(t *testing.T) { - var tests = []struct { + var tests := []struct { a, b int want int }{