From 029b9a392b2e9bfa38eec8d066287f825dacfd12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=BDubo=C5=A1=20Pinte=C5=A1?= Date: Tue, 1 Oct 2019 07:13:26 +0200 Subject: [PATCH] Fix possible little inconsistency: want != got -> got != want (#249) --- arrays-and-slices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }