mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-20 11:43:04 +00:00
removed obsolete reference to purity
This commit is contained in:
parent
e99657c7e7
commit
7266981b4c
@ -64,9 +64,6 @@ impl<T:Eq + IterBytes + Hash + Const + Copy> Interner<T> {
|
||||
new_idx
|
||||
}
|
||||
|
||||
// this isn't "pure" in the traditional sense, because it can go from
|
||||
// failing to returning a value as items are interned. But for typestate,
|
||||
// where we first check a pred and then rely on it, ceasing to fail is ok.
|
||||
pub fn get(&self, idx: uint) -> T { self.vect[idx] }
|
||||
|
||||
pub fn len(&self) -> uint { let vect = &*self.vect; vect.len() }
|
||||
|
Loading…
Reference in New Issue
Block a user