Skip to content

Commit 6a59319

Browse files
committed
Fixed libcore/cell.rs example
1 parent 45f281d commit 6a59319

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libcore/cell.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@
153153
//! impl<T: ?Sized> Clone for Rc<T> {
154154
//! fn clone(&self) -> Rc<T> {
155155
//! self.inc_strong();
156-
//! Rc { ptr: self.ptr }
156+
//! Rc {
157+
//! ptr: self.ptr,
158+
//! phantom: PhantomData,
159+
//! }
157160
//! }
158161
//! }
159162
//!

0 commit comments

Comments
 (0)