Skip to content

Commit 87db16c

Browse files
committed
core::marker: s/task/thread/
1 parent be138ed commit 87db16c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libcore/marker.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
use clone::Clone;
2929

30-
/// Types able to be transferred across task boundaries.
30+
/// Types able to be transferred across thread boundaries.
3131
#[unstable = "will be overhauled with new lifetime rules; see RFC 458"]
3232
#[lang="send"]
3333
#[rustc_on_unimplemented = "`{Self}` cannot be sent between threads safely"]
@@ -148,11 +148,11 @@ pub trait Copy {
148148
// Empty.
149149
}
150150

151-
/// Types that can be safely shared between tasks when aliased.
151+
/// Types that can be safely shared between threads when aliased.
152152
///
153153
/// The precise definition is: a type `T` is `Sync` if `&T` is
154154
/// 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.
156156
///
157157
/// As one would expect, primitive types like `u8` and `f64` are all
158158
/// `Sync`, and so are simple aggregate types containing them (like

0 commit comments

Comments
 (0)