diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index df0de234b9a16..b4b25258bbfd6 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -417,7 +417,7 @@ impl RefCell { /// /// let result = thread::spawn(move || { /// let c = RefCell::new(5); - /// let m = c.borrow_mut(); + /// let m = c.borrow(); /// /// let b = c.borrow_mut(); // this causes a panic /// }).join();