Skip to content

Commit

Permalink
Merge pull request #28 from cgaebel/master
Browse files Browse the repository at this point in the history
s/kv/entry/
  • Loading branch information
sfackler committed Nov 19, 2014
2 parents f6ce09a + bf62eb8 commit cc0d031
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 cc0d031

Please sign in to comment.