File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 27
27
28
28
use clone:: Clone ;
29
29
30
- /// Types able to be transferred across task boundaries.
30
+ /// Types able to be transferred across thread boundaries.
31
31
#[ unstable = "will be overhauled with new lifetime rules; see RFC 458" ]
32
32
#[ lang="send" ]
33
33
#[ rustc_on_unimplemented = "`{Self}` cannot be sent between threads safely" ]
@@ -148,11 +148,11 @@ pub trait Copy {
148
148
// Empty.
149
149
}
150
150
151
- /// Types that can be safely shared between tasks when aliased.
151
+ /// Types that can be safely shared between threads when aliased.
152
152
///
153
153
/// The precise definition is: a type `T` is `Sync` if `&T` is
154
154
/// thread-safe. In other words, there is no possibility of data races
155
- /// when passing `&T` references between tasks .
155
+ /// when passing `&T` references between threads .
156
156
///
157
157
/// As one would expect, primitive types like `u8` and `f64` are all
158
158
/// `Sync`, and so are simple aggregate types containing them (like
You can’t perform that action at this time.
0 commit comments