aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.rs b/src/term.rs
index 564eca7..70d5e1c 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -197,7 +197,7 @@ impl Reader {
}
fn next_key (&mut self) -> Keypress {
- fail_unless!(str::len(self.buf) > 0);
+ assert!(str::len(self.buf) > 0);
for uint::range_rev(str::len(self.buf), 0) |i| {
match self.escapes.find(str::slice(self.buf, 0, i)) {
&Some(k) => {