Fix confusing information in tutorial chapter about argument modes
This commit is contained in:
parent
bd6646e698
commit
7ea175f23f
1 changed files with 1 additions and 4 deletions
|
@ -104,11 +104,8 @@ Another style is by-move, which will cause the argument to become
|
||||||
de-initialized on the caller side, and give ownership of it to the
|
de-initialized on the caller side, and give ownership of it to the
|
||||||
called function. This is written `-`.
|
called function. This is written `-`.
|
||||||
|
|
||||||
Sometimes you need to pass a structural type by value, such as when
|
|
||||||
interfacing with external native functions. This is written `++`.
|
|
||||||
|
|
||||||
Finally, the default passing styles (by-value for non-structural
|
Finally, the default passing styles (by-value for non-structural
|
||||||
types, by-reference for structural ones) are written `+` for by-value
|
types, by-reference for structural ones) are written `++` for by-value
|
||||||
and `&&` for by(-immutable)-reference. It is sometimes necessary to
|
and `&&` for by(-immutable)-reference. It is sometimes necessary to
|
||||||
override the defaults. We'll talk more about this when discussing
|
override the defaults. We'll talk more about this when discussing
|
||||||
[generics][gens].
|
[generics][gens].
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue