Navigation Menu

Skip to content

Commit

Permalink
Fix ordered set index documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanhs committed Jan 28, 2016
1 parent 87ffab8 commit 44e495f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phf/src/ordered_set.rs
Expand Up @@ -57,8 +57,8 @@ impl<T> OrderedSet<T> {
self.map.get_index(key)
}

/// Returns references to both the key and values at an index
/// within the list used to initialize the ordered map. See `.get_index(key)`.
/// Returns a reference to the key at an index
/// within the list used to initialize the ordered set. See `.get_index(key)`.
pub fn index(&self, index: usize) -> Option<&T> {
self.map.index(index).map(|(k, &())| k)
}
Expand Down

0 comments on commit 44e495f

Please sign in to comment.