diff --git a/src/doc/nomicon/leaking.md b/src/doc/nomicon/leaking.md index 1aa78e112ea18..0441db27526f8 100644 --- a/src/doc/nomicon/leaking.md +++ b/src/doc/nomicon/leaking.md @@ -155,7 +155,6 @@ impl Rc { impl Drop for Rc { fn drop(&mut self) { unsafe { - let inner = &mut ; (*self.ptr).ref_count -= 1; if (*self.ptr).ref_count == 0 { // drop the data and then free it