Skip to content

Commit ebfd1a0

Browse files
authored
fix: clarify reference argument behavior in function calls (#9019)
1 parent 2beb316 commit ebfd1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/src/components/cairo/modules/language_constructs/pages/function-calls.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The syntax for a reference argument is xref:lvalue.adoc[`ref lvalue`]. The type
4040
match the type of the reference parameter.
4141
The behavior of passing a reference argument is similar to the
4242
xref:assignment-statement.adoc[assignment].
43-
`lvalue` is passed to the function and then reassigned to when the function returns.
43+
`lvalue` is passed to the function and then reassigned when the function returns.
4444
Example: `increment(ref a.b)`.
4545

4646
[source,rust]

0 commit comments

Comments
 (0)