Skip to content

Commit 5558c07

Browse files
authored
Fix ptr::hex doc example
1 parent 86d20f9 commit 5558c07

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
@@ -2523,7 +2523,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
25232523
/// let five_ref = &five;
25242524
///
25252525
/// let mut hasher = DefaultHasher::new();
2526-
/// ptr::hash(five_ref, hasher);
2526+
/// ptr::hash(five_ref, &mut hasher);
25272527
/// println!("Hash is {:x}!", hasher.finish());
25282528
/// ```
25292529
#[stable(feature = "rust1", since = "1.0.0")] // FIXME: replace with ???

0 commit comments

Comments
 (0)