diff options
| author | Patrick Walton <[email protected]> | 2011-03-18 14:15:27 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-18 14:15:27 -0700 |
| commit | a9ba76d52a50006763b8286168378a486a0b147d (patch) | |
| tree | ccdc8679467099ed48ab8efc2a895b925242adaa /src/lib/_str.rs | |
| parent | Add "mutable?" to _vec in the standard library; fix callers (diff) | |
| download | rust-a9ba76d52a50006763b8286168378a486a0b147d.tar.xz rust-a9ba76d52a50006763b8286168378a486a0b147d.zip | |
Fix bug in string comparison. std.rc typechecks now.
Diffstat (limited to 'src/lib/_str.rs')
| -rw-r--r-- | src/lib/_str.rs | 2 |
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) { |