1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-06-01 12:20:48 +00:00

Update golang.md

Use propercase in renaming the function in the `Testing` example
This commit is contained in:
yogesnsamy 2021-09-17 10:57:51 +08:00 committed by GitHub
parent b6537404c7
commit b885d645fe
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
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")
}
}