about summary refs log tree commit diff
path: root/src/libsyntax/util
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-05-14 11:40:29 -0700
committerJohn Clements <clements@racket-lang.org>2013-06-05 12:01:37 -0700
commit7266981b4cd9a593bf64ba3e91f724f998e18786 (patch)
tree1a811e162948c83def10bad6577ec57e0cfd5982 /src/libsyntax/util
parente99657c7e7a07828c6c6146f9d312193063a523c (diff)
downloadrust-7266981b4cd9a593bf64ba3e91f724f998e18786.tar.gz
rust-7266981b4cd9a593bf64ba3e91f724f998e18786.zip
removed obsolete reference to purity
Diffstat (limited to 'src/libsyntax/util')
-rw-r--r--src/libsyntax/util/interner.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs
index c3deb65163d..b55050184fe 100644
--- a/src/libsyntax/util/interner.rs
+++ b/src/libsyntax/util/interner.rs
@@ -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() }