docs(edit_distance): correct grammar

This commit is contained in:
davhojt 2022-05-24 17:39:11 +03:00 committed by Dav Hojt
parent eca5064956
commit 512c167a49
1 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
### Instructions
Create a **function** called `edit_distance` which calculates the minimum number of changes (insertions, deletions and/or substitutions) which need to be made to a string `source` to transform to another string `target`.
Create a **function** named `edit_distance`, which calculates the minimum number of changes (insertions, deletions and/or substitutions) which are needed to transform the `source` string to the `target` string.
### Expected Function
@ -11,10 +11,6 @@ pub fn edit_distance(source: &str, target: &str) -> usize {
}
```
### Notions
For more information and examples go to this [link](https://en.wikipedia.org/wiki/Edit_distance)
### Usage
Here is a program to test your function.
@ -41,3 +37,7 @@ $ cargo run
It's necessary to make 2 change(s) to alignment, to get assignment
$
```
### Notions
[Edit Distance (Wikipedia)](https://en.wikipedia.org/wiki/Edit_distance)