Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CON-3265 Fix rust piscine's quest-03 #2832

Merged
merged 30 commits into from
Jan 29, 2025
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(edit_distance)
  • Loading branch information
Pedro Ferreira committed Dec 26, 2024
commit befb2626ff0e438fb30027353a871b5fb6a33f7b
19 changes: 10 additions & 9 deletions subjects/edit_distance/README.md
Original file line number Diff line number Diff line change
@@ -19,22 +19,23 @@ Here is a program to test your function.
use edit_distance::*;

fn main() {
let source = "alignment";
let target = "assignment";
println!(
"It's necessary to make {} change(s) to {}, to get {}",
edit_distance(source, target),
source,
target
);
let source = "alignment";
let target = "assignment";

println!(
"It's necessary to make {} change(s) to {:?} to get {:?}",
edit_distance(source, target),
source,
target
);
}
```

And its output:

```console
$ cargo run
It's necessary to make 2 change(s) to alignment, to get assignment
It's necessary to make 2 change(s) to "alignment" to get "assignment"
$
```