about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-08-25 22:26:45 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-08-25 22:26:45 -0700
commitb099760269ecf7920eed99919ff6bdbd341ecf95 (patch)
tree30b0a452380ba2b068e382ac28d7dba1e492bf3b /src/lib
parent63f9b43d36fe9d95d36c3d541c66df04c7c11618 (diff)
downloadrust-b099760269ecf7920eed99919ff6bdbd341ecf95.tar.gz
rust-b099760269ecf7920eed99919ff6bdbd341ecf95.zip
Remove remaining use of 'pred' and make 'pred' a non-reserved word. Huzzah\!
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/str.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/str.rs b/src/lib/str.rs
index 98e59f70b4f..eff9e9bfd28 100644
--- a/src/lib/str.rs
+++ b/src/lib/str.rs
@@ -156,10 +156,10 @@ fn is_ascii(s: str) -> bool {
 fn alloc(n_bytes: uint) -> str { ret rustrt::str_alloc(n_bytes); }
 
 /// Returns true if the string has length 0
-pred is_empty(s: str) -> bool { for c: u8 in s { ret false; } ret true; }
+pure fn is_empty(s: str) -> bool { for c: u8 in s { ret false; } ret true; }
 
 /// Returns true if the string has length greater than 0
-pred is_not_empty(s: str) -> bool { !is_empty(s) }
+pure fn is_not_empty(s: str) -> bool { !is_empty(s) }
 
 fn is_whitespace(s: str) -> bool {
     let i = 0u;