about summary refs log tree commit diff
path: root/doc/tutorial.md
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2013-12-10 09:25:36 -0500
committerCorey Richardson <corey@octayn.net>2013-12-10 09:43:36 -0500
commita44852a2d5ac12545a3c1b55dab1c3d4070872a1 (patch)
tree3f95061ba9e9dfe7418e716321583f11c3f1de21 /doc/tutorial.md
parent888144c98d43d62e839307219346398660ddf546 (diff)
downloadrust-a44852a2d5ac12545a3c1b55dab1c3d4070872a1.tar.gz
rust-a44852a2d5ac12545a3c1b55dab1c3d4070872a1.zip
Update Owned to Send, show some types which aren't
Diffstat (limited to 'doc/tutorial.md')
-rw-r--r--doc/tutorial.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 7478e5a70f7..f6895adff06 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -922,11 +922,15 @@ let mut b = Foo { x: 5, y: ~10 };
 b.x = 10;
 ~~~~
 
-If an object doesn't contain garbage-collected boxes, it consists of a single
-ownership tree and is given the `Owned` trait which allows it to be sent
+If an object doesn't contain any non-Send types, it consists of a single
+ownership tree and is itself given the `Send` trait which allows it to be sent
 between tasks. Custom destructors can only be implemented directly on types
-that are `Owned`, but garbage-collected boxes can still *contain* types with
-custom destructors.
+that are `Send`, but non-`Send` types can still *contain* types with custom
+destructors. Example of types which are not `Send` are [`Gc<T>`][gc] and
+[`Rc<T>`][rc], the shared-ownership types.
+
+[gc]: http://static.rust-lang.org/doc/master/std/gc/struct.Gc.html
+[rc]: http://static.rust-lang.org/doc/master/std/rc/struct.Rc.html
 
 # Implementing a linked list