Skip to content

Commit

Permalink
s/kv/entry/
Browse files Browse the repository at this point in the history
  • Loading branch information
Clark Gaebel committed Nov 19, 2014
1 parent f6ce09a commit bf62eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phf/src/map.rs
Expand Up @@ -120,7 +120,7 @@ impl<K, V> Map<K, V> {

/// Like `get_kv`, but can operate on any type that is equivalent to a
/// key.
pub fn get_kv_equiv<Sized? T>(&self, key: &T) -> Option<(&K, &V)> where T: PhfHash+Equiv<K> {
pub fn get_entry_equiv<Sized? T>(&self, key: &T) -> Option<(&K, &V)> where T: PhfHash+Equiv<K> {
self.get_entry_(key, |k| key.equiv(k)).map(|e| (&e.0, &e.1))
}

Expand Down

0 comments on commit bf62eb8

Please sign in to comment.