mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00:00
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>
This commit is contained in:
parent
930c2c9a68
commit
26ceae85a8
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue