about summary refs log tree commit diff
path: root/src/libstd/sync/once.rs
diff options
context:
space:
mode:
authorBarosl Lee <vcs@barosl.com>2015-05-09 00:12:29 +0900
committerBarosl Lee <vcs@barosl.com>2015-05-09 02:24:18 +0900
commitff332b6467b2b93831c3f0ae3665e920ec725959 (patch)
tree4845dc94cb452d158eafa2cd136a1eeee6292448 /src/libstd/sync/once.rs
parentcf76e637450a861e94ef583340b8f080379a159a (diff)
downloadrust-ff332b6467b2b93831c3f0ae3665e920ec725959.tar.gz
rust-ff332b6467b2b93831c3f0ae3665e920ec725959.zip
Squeeze the last bits of `task`s in documentation in favor of `thread`
An automated script was run against the `.rs` and `.md` files,
subsituting every occurrence of `task` with `thread`. In the `.rs`
files, only the texts in the comment blocks were affected.
Diffstat (limited to 'src/libstd/sync/once.rs')
-rw-r--r--src/libstd/sync/once.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs
index 2d712369228..57baedaad9c 100644
--- a/src/libstd/sync/once.rs
+++ b/src/libstd/sync/once.rs
@@ -55,13 +55,13 @@ impl Once {
     /// will be executed if this is the first time `call_once` has been called,
     /// and otherwise the routine will *not* be invoked.
     ///
-    /// This method will block the calling task if another initialization
+    /// This method will block the calling thread if another initialization
     /// routine is currently running.
     ///
     /// When this function returns, it is guaranteed that some initialization
     /// has run and completed (it may not be the closure specified). It is also
     /// guaranteed that any memory writes performed by the executed closure can
-    /// be reliably observed by other tasks at this point (there is a
+    /// be reliably observed by other threads at this point (there is a
     /// happens-before relation between the closure and code executing after the
     /// return).
     #[stable(feature = "rust1", since = "1.0.0")]