From 44e495f634b1588ab148333cc582557f7877177f Mon Sep 17 00:00:00 2001 From: Aidan Hobson Sayers Date: Thu, 28 Jan 2016 12:41:10 +0000 Subject: [PATCH] Fix ordered set `index` documentation --- phf/src/ordered_set.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phf/src/ordered_set.rs b/phf/src/ordered_set.rs index bcd986c2..622fad9e 100644 --- a/phf/src/ordered_set.rs +++ b/phf/src/ordered_set.rs @@ -57,8 +57,8 @@ impl OrderedSet { 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) }