Skip to content

Commit

Permalink
rollup merge of rust-lang#23645: steveklabnik/gh23642
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 24, 2015
2 parents 6a44f24 + 05c9728 commit 7380b6f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/doc/trpl/pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,13 +498,10 @@ they go out of scope:
However, boxes do _not_ use reference counting or garbage collection. Boxes are
what's called an *affine type*. This means that the Rust compiler, at compile
time, determines when the box comes into and goes out of scope, and inserts the
appropriate calls there. Furthermore, boxes are a specific kind of affine type,
known as a *region*. You can read more about regions [in this paper on the
Cyclone programming
language](http://www.cs.umd.edu/projects/cyclone/papers/cyclone-regions.pdf).
appropriate calls there.

You don't need to fully grok the theory of affine types or regions to grok
boxes, though. As a rough approximation, you can treat this Rust code:
You don't need to fully grok the theory of affine types to grok boxes, though.
As a rough approximation, you can treat this Rust code:

```{rust}
{
Expand Down

0 comments on commit 7380b6f

Please sign in to comment.