Add insta-stable std:#️⃣:{DefaultHasher, RandomState} exports

This commit is contained in:
ltdk
2023-10-13 02:44:19 -04:00
parent 075409ddd9
commit 8337e86b28
19 changed files with 40 additions and 68 deletions

View File

@@ -297,7 +297,7 @@ impl<'a, T, const N: usize> TryFrom<&'a mut [T]> for &'a mut [T; N] {
/// ```
/// use std::hash::BuildHasher;
///
/// let b = std::collections::hash_map::RandomState::new();
/// let b = std::hash::RandomState::new();
/// let a: [u8; 3] = [0xa8, 0x3c, 0x09];
/// let s: &[u8] = &[0xa8, 0x3c, 0x09];
/// assert_eq!(b.hash_one(a), b.hash_one(s));