Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sankichi92 committed Dec 31, 2023
1 parent 04c5457 commit d44c47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 66-edit-distance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn min_distance(word1: String, word2: String) -> i32 {
if shorter.is_empty() {
return longer.len() as i32;
}

let mut distances: Vec<_> = (0..=shorter.len()).collect();
let mut prev_distances = distances.clone();

Expand Down

0 comments on commit d44c47e

Please sign in to comment.