We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d20f9 commit 5558c07Copy full SHA for 5558c07
src/libcore/ptr.rs
@@ -2523,7 +2523,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
2523
/// let five_ref = &five;
2524
///
2525
/// let mut hasher = DefaultHasher::new();
2526
-/// ptr::hash(five_ref, hasher);
+/// ptr::hash(five_ref, &mut hasher);
2527
/// println!("Hash is {:x}!", hasher.finish());
2528
/// ```
2529
#[stable(feature = "rust1", since = "1.0.0")] // FIXME: replace with ???
0 commit comments