diff --git a/arrays-and-slices.md b/arrays-and-slices.md index 1e785be26..a6cb682c9 100644 --- a/arrays-and-slices.md +++ b/arrays-and-slices.md @@ -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) } }