about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-03-18 14:15:27 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-03-18 14:15:27 -0700
commita9ba76d52a50006763b8286168378a486a0b147d (patch)
treeccdc8679467099ed48ab8efc2a895b925242adaa /src/lib
parent0cf16e77ca5a0b9f9dfaaab4dfe253d7a9cc5cce (diff)
Fix bug in string comparison. std.rc typechecks now.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/_str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/_str.rs b/src/lib/_str.rs
index 93d0a9f286a..e73fd1150dc 100644
--- a/src/lib/_str.rs
+++ b/src/lib/_str.rs
@@ -41,7 +41,7 @@ fn lteq(&str a, &str b) -> bool {
     while (x < n) {
         auto cha = a.(x);
         auto chb = b.(x);
-        if (cha <= chb) {
+        if (cha < chb) {
             ret true;
         }
         else if (cha > chb) {