diff options
| author | bors <bors@rust-lang.org> | 2017-12-02 12:42:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-12-02 12:42:54 +0000 |
| commit | 7a649872a917068951228192b7e14626bd7bd540 (patch) | |
| tree | 6289cfeb5086df6f00b48a0b0c708ad0fde7bcd7 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | e0d11f39d81496743ffe2037b0ec09a573948f40 (diff) | |
| parent | f18446e78de1e925b9849bd618e20ed471ad0e61 (diff) | |
| download | rust-7a649872a917068951228192b7e14626bd7bd540.tar.gz rust-7a649872a917068951228192b7e14626bd7bd540.zip | |
Auto merge of #46347 - raventid:did-you-mean-increase-accuracy, r=estebank
Add case insensitive comparison, besides Levenstein for DYM Closes #46332 Draft version. The idea is that Levenstein does not work for some cases when we have multiple equal weights for strings. I didn't understand the case with `if found != name => Some(found)` so it means that new code does not work correctly yet. At least now I think that we might return all maximal weights from levenstein and think about next cases in priority order: 1) There is exact match -> None 2) There is exact match, but case insensitive -> Some(match) 3) There is some match from levenstein -> Some(matches.take_any) 4) There is no match -> None @estebank WDYT?
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
