Skip to content

Commit

Permalink
core::marker: s/task/thread/
Browse files Browse the repository at this point in the history
  • Loading branch information
ftxqxd committed Jan 22, 2015
1 parent be138ed commit 87db16c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libcore/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

use clone::Clone;

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

/// Types that can be safely shared between tasks when aliased.
/// Types that can be safely shared between threads when aliased.
///
/// The precise definition is: a type `T` is `Sync` if `&T` is
/// thread-safe. In other words, there is no possibility of data races
/// when passing `&T` references between tasks.
/// when passing `&T` references between threads.
///
/// As one would expect, primitive types like `u8` and `f64` are all
/// `Sync`, and so are simple aggregate types containing them (like
Expand Down

0 comments on commit 87db16c

Please sign in to comment.