From 3232e7599566e896c9bfee4e4eba71e6963e3ce8 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 26 Sep 2012 18:36:36 -0700 Subject: [PATCH] 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. --- doc/tutorial.md | 9 --------- 1 file changed, 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