diff --git a/phf/src/map.rs b/phf/src/map.rs index 22c5b639..3667f3d4 100644 --- a/phf/src/map.rs +++ b/phf/src/map.rs @@ -83,7 +83,7 @@ impl Map { self.get_entry(key).map(|e| e.1) } - /// Returns a reference to the map's isizeernal static instance of the given + /// Returns a reference to the map's internal static instance of the given /// key. /// /// This can be useful for interning schemes. diff --git a/phf/src/ordered_map.rs b/phf/src/ordered_map.rs index b0c2366f..c3df89a2 100644 --- a/phf/src/ordered_map.rs +++ b/phf/src/ordered_map.rs @@ -85,7 +85,7 @@ impl OrderedMap { self.get_entry(key).map(|e| e.1) } - /// Returns a reference to the map's isizeernal static instance of the given + /// Returns a reference to the map's internal static instance of the given /// key. /// /// This can be useful for interning schemes. @@ -102,16 +102,16 @@ impl OrderedMap { /// the ordered map. pub fn get_index(&self, key: &T) -> Option where T: Eq + PhfHash + BorrowFrom { - self.get_isizeernal(key).map(|(i, _)| i) + self.get_internal(key).map(|(i, _)| i) } /// Like `get`, but returns both the key and the value. pub fn get_entry(&self, key: &T) -> Option<(&K, &V)> where T: Eq + PhfHash + BorrowFrom { - self.get_isizeernal(key).map(|(_, e)| e) + self.get_internal(key).map(|(_, e)| e) } - fn get_isizeernal(&self, key: &T) -> Option<(usize, (&K, &V))> + fn get_internal(&self, key: &T) -> Option<(usize, (&K, &V))> where T: Eq + PhfHash + BorrowFrom { let (g, f1, f2) = key.phf_hash(self.key); let (d1, d2) = self.disps[(g % (self.disps.len() as u32)) as usize]; diff --git a/phf/src/ordered_set.rs b/phf/src/ordered_set.rs index e7406f6d..006f4d65 100644 --- a/phf/src/ordered_set.rs +++ b/phf/src/ordered_set.rs @@ -63,7 +63,7 @@ impl OrderedSet { self.len() == 0 } - /// Returns a reference to the set's isizeernal static instance of the given + /// Returns a reference to the set's internal static instance of the given /// key. /// /// This can be useful for interning schemes. diff --git a/phf/src/set.rs b/phf/src/set.rs index e945d551..92c30ba7 100644 --- a/phf/src/set.rs +++ b/phf/src/set.rs @@ -61,7 +61,7 @@ impl Set { self.len() == 0 } - /// Returns a reference to the set's isizeernal static instance of the given + /// Returns a reference to the set's internal static instance of the given /// key. /// /// This can be useful for interning schemes.