From 7b2afb246d83e45e2700e2d1e1f46314abe45a3b Mon Sep 17 00:00:00 2001 From: rustpit <44278714+rustpit@users.noreply.github.com> Date: Mon, 22 Oct 2018 18:17:04 -0700 Subject: [PATCH] Text contains wrong function name (#20906) Code block shows function name `sum`, but text incorrectly refers to it as `add`. --- guide/english/go/functions/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/go/functions/index.md b/guide/english/go/functions/index.md index 48d70fd547..71d9171530 100644 --- a/guide/english/go/functions/index.md +++ b/guide/english/go/functions/index.md @@ -10,7 +10,7 @@ func sum(parameter1 int64, parameter2 int64) int64 { return parameter1+parameter2 } ``` -Here, the name of the function is `add`. It takes to parameters, `parameter1` and `parameter2` of type `int64` +Here, the name of the function is `sum`. It takes to parameters, `parameter1` and `parameter2` of type `int64` and returns another int64, the sum of the two parameters. ### Return