Skip to content

Commit 097b5db

Browse files
committed
Move feature enable in ptr::hash doc example
1 parent 9755410 commit 097b5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2515,6 +2515,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
25152515
/// # Examples
25162516
///
25172517
/// ```
2518+
/// #![feature(ptr_hash)]
25182519
/// use std::collections::hash_map::DefaultHasher;
25192520
/// use std::hash::{Hash, Hasher};
25202521
/// use std::ptr;
@@ -2523,7 +2524,6 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
25232524
/// let five_ref = &five;
25242525
///
25252526
/// let mut hasher = DefaultHasher::new();
2526-
/// #[feature(ptr_hash)]
25272527
/// ptr::hash(five_ref, &mut hasher);
25282528
/// let actual = hasher.finish();
25292529
///

0 commit comments

Comments
 (0)