diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-26 18:36:36 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-26 18:36:38 -0700 |
| commit | 3232e7599566e896c9bfee4e4eba71e6963e3ce8 (patch) | |
| tree | 7bd30f3e8ed47a17a24fbe397ba6cbbf2c8bf43f /doc | |
| parent | 8f0e9ff02914459a98d1727f5bf0c26bba604bb9 (diff) | |
| download | rust-3232e7599566e896c9bfee4e4eba71e6963e3ce8.tar.gz rust-3232e7599566e896c9bfee4e4eba71e6963e3ce8.zip | |
tutorial: Delete 'what to be aware of'
This section associates borrowed pointers purely with stack allocation, which is confusing. The following sections explain pointers in detail.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/tutorial.md | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 731e7311ce3..ade15ebbc13 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -995,15 +995,6 @@ _owned boxes_. All tasks may allocate objects on the exchange heap, then transfer ownership of those objects to other tasks, avoiding expensive copies. -## What to be aware of - -Rust has three "realms" in which objects can be allocated: the stack, -the local heap, and the exchange heap. These realms have corresponding -pointer types: the borrowed pointer (`&T`), the managed box (`@T`), -and the owned box (`~T`). These three sigils will appear -repeatedly as we explore the language. Learning the appropriate role -of each is key to using Rust effectively. - # Boxes and pointers In contrast to a lot of modern languages, aggregate types like structs |
