summaryrefslogtreecommitdiffhomepage
path: root/go.html.markdown
diff options
context:
space:
mode:
authorSam Zaydel <szaydel@gmail.com>2014-06-22 20:49:29 -0700
committerSam Zaydel <szaydel@gmail.com>2014-06-22 20:49:29 -0700
commit94484047091a18d4b2440650382b9ecbd7840044 (patch)
treee8b4652889f4412629531abb4acedb33f020631b /go.html.markdown
parentff49deb88608785f913aa0129bab21807b397cd9 (diff)
Slight language change per pull req. comment
Diffstat (limited to 'go.html.markdown')
-rw-r--r--go.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/go.html.markdown b/go.html.markdown
index 0f022541..0a0e6c53 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.
-// We just have to assign a name to the type being returned in the function
-// declaration line. This allows us to easily return from multiple points
-// in a function as well as to only use the return keyword, without anything further.
+// 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.
func learnNamedReturns(x, y int) (z int) {
z = x * y
return // z is implicit here, because we named it earlier.