diff options
author | Damian Gryski <[email protected]> | 2023-03-21 11:10:41 -0700 |
---|---|---|
committer | Ayke <[email protected]> | 2023-03-21 20:53:37 +0100 |
commit | 4d43df75d5d32d5809dde49e6b851f5bdd565855 (patch) | |
tree | d667c639c97cf7e56768a65574ade2d241e66b3e | |
parent | 57b0c2149243b50e544fd8a5f6eb0a7690abdef1 (diff) | |
download | tinygo-4d43df75d5d32d5809dde49e6b851f5bdd565855.tar.gz tinygo-4d43df75d5d32d5809dde49e6b851f5bdd565855.zip |
reflect: fix some vet issues
-rw-r--r-- | src/reflect/value_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflect/value_test.go b/src/reflect/value_test.go index 2bc8f9275..148e8c81f 100644 --- a/src/reflect/value_test.go +++ b/src/reflect/value_test.go @@ -309,7 +309,7 @@ func TestStruct(t *testing.T) { var ok bool q, ok = reffb.FieldByName("Foo") if q.Name != "Foo" || !ok { - t.Errorf("FieldByName(Foo)=%v,%v, want Foo, true") + t.Errorf("FieldByName(Foo)=%v,%v, want Foo, true", q.Name, ok) } if got, want := q.Tag, `foo:"struct tag"`; string(got) != want { @@ -318,7 +318,7 @@ func TestStruct(t *testing.T) { q, ok = reffb.FieldByName("Snorble") if q.Name != "" || ok { - t.Errorf("FieldByName(Snorble)=%v,%v, want ``, false") + t.Errorf("FieldByName(Snorble)=%v,%v, want ``, false", q.Name, ok) } } |