Skip to content

Commit eba891e

Browse files
committed
tutorial: Mention by-value argument passing style.
1 parent 8319b5a commit eba891e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/tutorial/args.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ Another style is by-move, which will cause the argument to become
104104
de-initialized on the caller side, and give ownership of it to the
105105
called function. This is written `-`.
106106

107+
Sometimes you need to pass a structural type by value, such as when
108+
interfacing with external native functions. This is written `++`.
109+
107110
Finally, the default passing styles (by-value for non-structural
108111
types, by-reference for structural ones) are written `+` for by-value
109112
and `&&` for by(-immutable)-reference. It is sometimes necessary to

0 commit comments

Comments
 (0)