aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-18 14:15:27 -0700
committerPatrick Walton <[email protected]>2011-03-18 14:15:27 -0700
commita9ba76d52a50006763b8286168378a486a0b147d (patch)
treeccdc8679467099ed48ab8efc2a895b925242adaa /src/lib
parentAdd "mutable?" to _vec in the standard library; fix callers (diff)
downloadrust-a9ba76d52a50006763b8286168378a486a0b147d.tar.xz
rust-a9ba76d52a50006763b8286168378a486a0b147d.zip
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 93d0a9f2..e73fd115 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) {