Skip to content

Commit 7ea175f

Browse files
committed
Fix confusing information in tutorial chapter about argument modes
1 parent bd6646e commit 7ea175f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

doc/tutorial/args.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,8 @@ 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-
110107
Finally, the default passing styles (by-value for non-structural
111-
types, by-reference for structural ones) are written `+` for by-value
108+
types, by-reference for structural ones) are written `++` for by-value
112109
and `&&` for by(-immutable)-reference. It is sometimes necessary to
113110
override the defaults. We'll talk more about this when discussing
114111
[generics][gens].

0 commit comments

Comments
 (0)