Skip to content

Commit

Permalink
spec: More precise wording in section on function calls.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
DQNEO authored and griesemer committed Feb 11, 2021
1 parent 930c2c9 commit 26ceae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/go_spec.html
Original file line number Diff line number Diff line change
@@ -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"
}-->

Expand Down Expand Up @@ -3446,7 +3446,7 @@ <h3 id="Calls">Calls</h3>
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>
Expand Down

0 comments on commit 26ceae8

Please sign in to comment.