Skip to content

Commit 40a4319

Browse files
authored
Fix misdescribed example of input argument (#925)
Fixes #911 (as described there)
1 parent d538391 commit 40a4319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ During the run-time processing of a function member invocation ([§12.6.6](expre
615615
> M1(i + 5); // transformed to a temporary input argument
616616
> ```
617617
>
618-
> In each method call, an unnamed `int` variable is created, initialized with the arguments value, and then passed as an input argument. See [§12.6.4.2](expressions.md#12642-applicable-function-member) and12.6.4.4](expressions.md#12644-better-parameter-passing-mode).
618+
> In the `M1(i)` method call, `i` itself is passed as an input argument, because it is classified as a variable and has the same type `int` as the input parameter. In the `M1(i + 5)` method call, an unnamed `int` variable is created, initialized with the arguments value, and then passed as an input argument. See [§12.6.4.2](expressions.md#12642-applicable-function-member) and12.6.4.4](expressions.md#12644-better-parameter-passing-mode).
619619
>
620620
> *end example*
621621

0 commit comments

Comments
 (0)