/// automatic global access as well as lazy initialization. The internal
/// resources of this RwLock, however, must be manually deallocated.
///
-/// # Example
+/// # Examples
///
/// ```
+/// # #![feature(std_misc)]
/// use std::sync::{StaticRwLock, RW_LOCK_INIT};
///
/// static LOCK: StaticRwLock = RW_LOCK_INIT;
let arc2 = arc.clone();
let _ = thread::spawn(move|| -> () {
struct Unwinder {
- i: Arc<RwLock<int>>,
+ i: Arc<RwLock<isize>>,
}
impl Drop for Unwinder {
fn drop(&mut self) {