From 7ea175f23fb3aa35f430d55595b9564a5ab632f8 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 2 Jan 2012 10:23:04 +0100 Subject: [PATCH] Fix confusing information in tutorial chapter about argument modes --- doc/tutorial/args.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/tutorial/args.md b/doc/tutorial/args.md index de2fe3bf25e..d388a141120 100644 --- a/doc/tutorial/args.md +++ b/doc/tutorial/args.md @@ -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].