1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-24 13:47:36 +00:00

Merge pull request #224 from yogesnsamy/patch-1

Update golang.md
This commit is contained in:
Julien Le Coupanec 2021-09-17 14:36:24 +02:00 committed by GitHub
commit 01cbe6f0bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -641,7 +641,7 @@ func TestSum(t *testing.T) {
x, y := 2, 4 x, y := 2, 4
expected := 2 + 4 expected := 2 + 4
if !reflect.DeepEqual(sum(x, y), expected) { if !reflect.DeepEqual(Sum(x, y), expected) {
t.Fatalf("Function Sum not working as expected") t.Fatalf("Function Sum not working as expected")
} }
} }