We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60747c commit a70e0feCopy full SHA for a70e0fe
core/src/lib.rs
@@ -86,11 +86,11 @@ pub fn cure<S: AsRef<str> + ?Sized>(input: &S) -> CuredString {
86
return;
87
}
88
Ordering::Greater => start = mid + 1,
89
- _ => end = mid, // Ordering::Less
+ _ => end = mid,
90
91
92
if start == end {
93
- let confusable2 = matcher::Confusable::at(start); // end works too
+ let confusable2 = matcher::Confusable::at(start);
94
95
if confusable2.matches(code as _, code_lowercased) == Ordering::Equal {
96
output.push_translation(confusable2.translation(code as _, code_lowercased));
0 commit comments