fix: tests var init

This commit is contained in:
Byron Chris 2021-05-17 19:03:36 +03:00 committed by GitHub
parent 58e66a8103
commit fbea444873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}{