diff --git a/src/remstack.rs b/src/remstack.rs index 068b392e..72e81f04 100644 --- a/src/remstack.rs +++ b/src/remstack.rs @@ -40,7 +40,7 @@ impl RemStack { } fn index_probe(&self, idx: usize) -> Option { - if idx > self.vec.len() { + if idx >= self.vec.len() { return None; }