diff options
Diffstat (limited to 'src/libcore/box.rs')
| -rw-r--r-- | src/libcore/box.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/box.rs b/src/libcore/box.rs index 881d736d2ba..bbafc87774d 100644 --- a/src/libcore/box.rs +++ b/src/libcore/box.rs @@ -1,9 +1,9 @@ -#[doc = "Operations on shared box types"]; +//! Operations on shared box types export ptr_eq; pure fn ptr_eq<T>(a: @T, b: @T) -> bool { - #[doc = "Determine if two shared boxes point to the same object"]; + //! Determine if two shared boxes point to the same object unsafe { ptr::addr_of(*a) == ptr::addr_of(*b) } } |
