diff options
| author | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-10-29 22:39:34 +0900 |
|---|---|---|
| committer | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2018-12-04 09:28:14 +0900 |
| commit | 4e3128223b215bb84fc25ac4394f8ed44d1c27bb (patch) | |
| tree | dd20f2d6e1a17cb257d36dfbb26f32af76433251 /src/libsyntax | |
| parent | 11af6f66cb62cb577bbd787000f0ca57fbe1ee4a (diff) | |
| download | rust-4e3128223b215bb84fc25ac4394f8ed44d1c27bb.tar.gz rust-4e3128223b215bb84fc25ac4394f8ed44d1c27bb.zip | |
Fix test
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/util/lev_distance.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/util/lev_distance.rs b/src/libsyntax/util/lev_distance.rs index feee2422cb6..fb281154be0 100644 --- a/src/libsyntax/util/lev_distance.rs +++ b/src/libsyntax/util/lev_distance.rs @@ -38,7 +38,8 @@ pub fn lev_distance(a: &str, b: &str) -> usize { current = next; t_last = j; } - } dcol[t_last + 1] + } + dcol[t_last + 1] } /// Find the best match for a given word in the given iterator |
