From e881ba74f302cc5cac7f21cd1e7da163ca774d78 Mon Sep 17 00:00:00 2001 From: Sam Zaydel Date: Mon, 23 Jun 2014 07:31:39 -0700 Subject: Hopefully slight language improvement over orig. --- go.html.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'go.html.markdown') diff --git a/go.html.markdown b/go.html.markdown index 0a0e6c53..c70f96bd 100644 --- a/go.html.markdown +++ b/go.html.markdown @@ -118,9 +118,9 @@ can include line breaks.` // Same string type. // It is possible, unlike in many other languages for functions in go // to have named return values. -// Giving a name to type being returned allows us to easily return from -// multiple points in a function as well as to only use the return keyword, -// without anything further. +// Assigning a name to the type being returned in the function declaration line +// allows us to easily return from multiple points in a function as well as to +// only use the return keyword, without anything further. func learnNamedReturns(x, y int) (z int) { z = x * y return // z is implicit here, because we named it earlier. -- cgit v1.2.3