Skip to content

Commit

Permalink
Fix possible little inconsistency: want != got -> got != want (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpintes authored and quii committed Oct 1, 2019
1 parent a5cdb3b commit 029b9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrays-and-slices.md
Expand Up @@ -27,7 +27,7 @@ func TestSum(t *testing.T) {
got := Sum(numbers)
want := 15

if want != got {
if got != want {
t.Errorf("got %d want %d given, %v", got, want, numbers)
}
}
Expand Down

0 comments on commit 029b9a3

Please sign in to comment.