about summary refs log tree commit diff
path: root/src/doc/tutorial.md
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2014-03-16 13:24:33 +0100
committerFlavio Percoco <flaper87@gmail.com>2014-03-20 10:32:53 +0100
commit7b19574a2c2faac766c5192b243e5c361e449f3b (patch)
treeeacdeb4fceca740e565fc1ce56eaf1dfd3115900 /src/doc/tutorial.md
parent0aebdaced50eb34f98ce533054d38ee1bf15d209 (diff)
downloadrust-7b19574a2c2faac766c5192b243e5c361e449f3b.tar.gz
rust-7b19574a2c2faac766c5192b243e5c361e449f3b.zip
Mention Share in the tutorial
Diffstat (limited to 'src/doc/tutorial.md')
-rw-r--r--src/doc/tutorial.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md
index cdb521b96c4..0a417a5a8bf 100644
--- a/src/doc/tutorial.md
+++ b/src/doc/tutorial.md
@@ -2095,6 +2095,10 @@ and may not be overridden:
 Types are sendable
 unless they contain managed boxes, managed closures, or references.
 
+* `Share` - Types that are *threadsafe*
+These are types that are safe to be used across several threads with access to
+a `&T` pointer. `MutexArc` is an example of a *sharable* type with internal mutable data.
+
 * `Freeze` - Constant (immutable) types.
 These are types that do not contain anything intrinsically mutable.
 Intrinsically mutable values include `Cell` in the standard library.