Skip to content

Commit

Permalink
tutorial: Delete 'what to be aware of'
Browse files Browse the repository at this point in the history
This section associates borrowed pointers purely with stack allocation, which
is confusing. The following sections explain pointers in detail.
  • Loading branch information
brson committed Sep 27, 2012
1 parent 8f0e9ff commit 3232e75
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3232e75

Please sign in to comment.