Skip to content

Commit

Permalink
Merge pull request rust-phf#75 from aidanhs/aphs-fix-ord-set-doc
Browse files Browse the repository at this point in the history
Fix ordered set `index` documentation
  • Loading branch information
sfackler committed Jan 28, 2016
2 parents 87ffab8 + 44e495f commit ae5ee38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phf/src/ordered_set.rs
Original file line number Diff line number Diff line change
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 ae5ee38

Please sign in to comment.