1
Fork 0

Fix confusing information in tutorial chapter about argument modes

This commit is contained in:
Marijn Haverbeke 2012-01-02 10:23:04 +01:00
parent bd6646e698
commit 7ea175f23f

View file

@ -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
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
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
override the defaults. We'll talk more about this when discussing
[generics][gens].