1
Fork 0

Demode Num trait and impls

This commit is contained in:
Tim Chevalier 2012-09-25 15:15:49 -07:00
parent 2d91567892
commit e85a3d8247
8 changed files with 59 additions and 59 deletions

View file

@ -464,7 +464,7 @@ pure fn byte_slice<T>(s: &str, f: fn(v: &[u8]) -> T) -> T {
/// Convert a string to a vector of characters
pure fn chars(s: &str) -> ~[char] {
let mut buf = ~[], i = 0u;
let mut buf = ~[], i = 0;
let len = len(s);
while i < len {
let {ch, next} = char_range_at(s, i);