diff options
| author | Isaac Dupree <antispam@idupree.com> | 2013-11-20 23:50:10 -0500 |
|---|---|---|
| committer | Isaac Dupree <antispam@idupree.com> | 2013-11-20 23:50:10 -0500 |
| commit | aa9efa1f7ac0f3fa25bcd76646b9ab37db9ba814 (patch) | |
| tree | eaa34553f3716ead4fa8d0219d9ec55f6d8f3f98 | |
| parent | 760942d7d2a0701f526a5bc634419df7a1e941fe (diff) | |
| download | rust-aa9efa1f7ac0f3fa25bcd76646b9ab37db9ba814.tar.gz rust-aa9efa1f7ac0f3fa25bcd76646b9ab37db9ba814.zip | |
update manual to reflect &'lifetime syntax
| -rw-r--r-- | doc/rust.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/rust.md b/doc/rust.md index d876fe02b92..459a1741170 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -3162,7 +3162,7 @@ Borrowed pointers (`&`) Borrowed pointers arise by (automatic) conversion from owning pointers, managed pointers, or by applying the borrowing operator `&` to some other value, including [lvalues, rvalues or temporaries](#lvalues-rvalues-and-temporaries). - Borrowed pointers are written `&content`, or in some cases `&f/content` for some lifetime-variable `f`, + Borrowed pointers are written `&content`, or in some cases `&'f content` for some lifetime-variable `f`, for example `&int` means a borrowed pointer to an integer. Copying a borrowed pointer is a "shallow" operation: it involves only copying the pointer itself. |
