diff options
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ptr.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index a9a029d606d..c9f1a87ba9f 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2483,6 +2483,10 @@ impl<T: ?Sized> Eq for *mut T {} /// by their address rather than comparing the values they point to /// (which is what the `PartialEq for &T` implementation does). /// +/// Smart pointer types, such as `Box`, `Rc`, and `Arc` do not compare +/// using this function, instead they compare the values rather than +/// their addresses. +/// /// # Examples /// /// ``` |
