about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-01 14:04:20 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-01 15:38:59 -0700
commit0304e15e5c39654346e827c2bb25ca41ed310c86 (patch)
tree2e8b8ea5a0daf51f819acaab9b9e2572459e2a60 /src/liballoc
parent655634e6ab00707ef98034dcfb32000cbfa7a01c (diff)
downloadrust-0304e15e5c39654346e827c2bb25ca41ed310c86.tar.gz
rust-0304e15e5c39654346e827c2bb25ca41ed310c86.zip
Test fixes and rebase conflicts, round 1
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/arc.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs
index 73d109f3c8d..f87c450eda5 100644
--- a/src/liballoc/arc.rs
+++ b/src/liballoc/arc.rs
@@ -252,11 +252,14 @@ pub fn strong_count<T>(this: &Arc<T>) -> usize { this.inner().strong.load(SeqCst
 ///
 /// ```
 /// # #![feature(alloc)]
-/// use std::alloc::arc;
+/// extern crate alloc;
+/// # fn main() {
+/// use alloc::arc;
 ///
 /// let mut four = arc::Arc::new(4);
 ///
 /// arc::unique(&mut four).map(|num| *num = 5);
+/// # }
 /// ```
 #[inline]
 #[unstable(feature = "alloc")]