tutorial: Add a note about the experimentalness of borrowed pointers

This commit is contained in:
Brian Anderson 2012-07-07 16:27:59 -07:00
parent 7196617669
commit 04feb6e1ab
1 changed files with 6 additions and 0 deletions

View File

@ -1341,6 +1341,12 @@ let foo_ptr;
}
~~~~
> ***Note:*** borrowed pointers are a new addition to the language.
> They are not used extensively yet but are expected to become the
> pointer type used in many common situations, in particular for
> by-reference argument passing. Rust's current solution for passing
> arguments by reference is [argument modes](#argument-passing).
## Mutability
All pointer types have a mutable variant, written `@mut T` or `~mut