Skip to content

Commit

Permalink
tutorial: Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Sep 27, 2012
1 parent 1880d78 commit ae1a730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorial.md
Expand Up @@ -957,7 +957,7 @@ Rust has three competing goals that inform its view of memory:
Most languages that offer strong memory safety guarantees rely upon a
garbage-collected heap to manage all of the objects. This approach is
straightforward both in concept and in implementation, but has
significant costs. Languages that take this approach tend to
significant costs. Languages that follow this path tend to
aggressively pursue ways to ameliorate allocation costs (think the
Java Virtual Machine). Rust supports this strategy with _managed
boxes_: memory allocated on the heap whose lifetime is managed
Expand All @@ -982,7 +982,7 @@ tasks. Experience in other languages has proven that isolating each
task's heap from the others is a reliable strategy and one that is
easy for programmers to reason about. Heap isolation has the
additional benefit that garbage collection must only be done
per-heap. Rust never "stops the world" to garbage-collect memory.
per-heap. Rust never "stops the world" to reclaim memory.
Complete isolation of heaps between tasks implies that any data
transferred between tasks must be copied. While this is a fine and
Expand Down

0 comments on commit ae1a730

Please sign in to comment.