Fixed libcore/cell.rs example
This commit is contained in:
parent
45f281d461
commit
6a5931921c
1 changed files with 4 additions and 1 deletions
|
|
@ -153,7 +153,10 @@
|
|||
//! impl<T: ?Sized> Clone for Rc<T> {
|
||||
//! fn clone(&self) -> Rc<T> {
|
||||
//! self.inc_strong();
|
||||
//! Rc { ptr: self.ptr }
|
||||
//! Rc {
|
||||
//! ptr: self.ptr,
|
||||
//! phantom: PhantomData,
|
||||
//! }
|
||||
//! }
|
||||
//! }
|
||||
//!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue