mirror of https://github.com/01-edu/public.git
docs(edit_distance): correct grammar
This commit is contained in:
parent
eca5064956
commit
512c167a49
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue