]> git.lizzy.rs Git - rust.git/commit
auto merge of #17738 : hoeppnertill/rust/master, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 4 Oct 2014 19:32:07 +0000 (19:32 +0000)
committerbors <bors@rust-lang.org>
Sat, 4 Oct 2014 19:32:07 +0000 (19:32 +0000)
commita2e7c4da9b331d337fba0b3911c6d3d7f48e8305
tree934452ca7ce6287103d64b086e44feac3a219b71
parente434aa1cf737b050ef79c3d7a0a7eca48c7f8e49
parent3aea7f18894bfc35c03044688229f6de84eb42f3
auto merge of #17738 : hoeppnertill/rust/master, r=alexcrichton

There is an issue with lev_distance, where
```
fn main() {
    println!("{}", "\x80".lev_distance("\x80"))
}
```
prints `2`.

This is due to using the byte length instead of the char length.