]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #36860 - wesleywiser:patch-2, r=Manishearth
authorSteve Klabnik <steve@steveklabnik.com>
Fri, 30 Sep 2016 17:44:48 +0000 (13:44 -0400)
committerGitHub <noreply@github.com>
Fri, 30 Sep 2016 17:44:48 +0000 (13:44 -0400)
Add `Send` and `Sync` traits to the reference

Fixes #36859

src/doc/reference.md

index b72c3743a69ce1f34d447d7976f94b83ba62a66e..20970ab7a351254322cedef0f6efb4198e95dc75 100644 (file)
@@ -3959,6 +3959,16 @@ the top-level type for the implementation of the called method. If no such metho
 found, `.deref()` is called and the compiler continues to search for the method
 implementation in the returned type `U`.
 
+## The `Send` trait
+
+The `Send` trait indicates that a value of this type is safe to send from one 
+thread to another.
+
+## The 'Sync' trait
+
+The 'Sync' trait indicates that a value of this type is safe to share between
+multiple threads.
+
 # Memory model
 
 A Rust program's memory consists of a static set of *items* and a *heap*.