about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/atomic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/atomic.rs b/src/libcore/atomic.rs
index 15c20253c8b..cc4308b5294 100644
--- a/src/libcore/atomic.rs
+++ b/src/libcore/atomic.rs
@@ -50,7 +50,7 @@
 //!     let spinlock_clone = spinlock.clone();
 //!     Thread::spawn(move|| {
 //!         spinlock_clone.store(0, Ordering::SeqCst);
-//!     }).detach();
+//!     });
 //!
 //!     // Wait for the other task to release the lock
 //!     while spinlock.load(Ordering::SeqCst) != 0 {}