From 04feb6e1ab50bfe819ecc383e9e8712efa2b93af Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 7 Jul 2012 16:27:59 -0700 Subject: [PATCH] tutorial: Add a note about the experimentalness of borrowed pointers --- doc/tutorial.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/tutorial.md b/doc/tutorial.md index d3bbb869e6e..cb63c41d1e3 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -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