summary refs log tree commit diff
path: root/src/libstd/thread/mod.rs
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-07-27 10:50:19 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-07-27 12:28:13 -0400
commitba5fcb726fb88cc8393f48c9f46ba03fcadf0511 (patch)
treeabbbe227f14e6553d47201ad533e8d5b91fa4672 /src/libstd/thread/mod.rs
parentd019a49ac86322703e1daad0ebca393856185b32 (diff)
downloadrust-ba5fcb726fb88cc8393f48c9f46ba03fcadf0511.tar.gz
rust-ba5fcb726fb88cc8393f48c9f46ba03fcadf0511.zip
Show appropriate feature flags in docs
Diffstat (limited to 'src/libstd/thread/mod.rs')
-rw-r--r--src/libstd/thread/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index 3388968c56c..2683f8e5022 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -367,7 +367,8 @@ pub fn spawn<F, T>(f: F) -> JoinHandle<T> where
 /// a join before any relevant stack frames are popped:
 ///
 /// ```rust
-/// # #![feature(scoped)]
+/// #![feature(scoped)]
+///
 /// use std::thread;
 ///
 /// let guard = thread::scoped(move || {
@@ -447,7 +448,8 @@ pub fn panicking() -> bool {
 /// # Examples
 ///
 /// ```
-/// # #![feature(catch_panic)]
+/// #![feature(catch_panic)]
+///
 /// use std::thread;
 ///
 /// let result = thread::catch_panic(|| {