aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDQNEO <dqneoo@gmail.com>2021-02-10 14:46:54 +0900
committerRobert Griesemer <gri@golang.org>2021-02-11 17:55:50 +0000
commit26ceae85a89dc4ea910cc0bfa209c85213a93725 (patch)
treec34c17a0c0e8f97f85adc74ef996138ad332265e
parent930c2c9a6810b54d84dc499120219a6cb4563fd7 (diff)
downloadgo-26ceae85a89dc4ea910cc0bfa209c85213a93725.tar.gz
go-26ceae85a89dc4ea910cc0bfa209c85213a93725.zip
spec: More precise wording in section on function calls.
A caller is not always in a function. For example, a call can appear in top level declarations. e.g. var x = f() Change-Id: I29c4c3b7663249434fb2b8a6d0003267c77268cf Reviewed-on: https://go-review.googlesource.com/c/go/+/290849 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Trust: Robert Griesemer <gri@golang.org>
-rw-r--r--doc/go_spec.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index c9e14a3fec7..59c9ce3c434 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of Feb 2, 2021",
+ "Subtitle": "Version of Feb 10, 2021",
"Path": "/ref/spec"
}-->
@@ -3446,7 +3446,7 @@ In a function call, the function value and arguments are evaluated in
After they are evaluated, the parameters of the call are passed by value to the function
and the called function begins execution.
The return parameters of the function are passed by value
-back to the calling function when the function returns.
+back to the caller when the function returns.
</p>
<p>