From 512c167a49fecb8a3cc7057283b6d6a2f62c5bee Mon Sep 17 00:00:00 2001 From: davhojt Date: Tue, 24 May 2022 17:39:11 +0300 Subject: [PATCH] docs(edit_distance): correct grammar --- subjects/edit_distance/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subjects/edit_distance/README.md b/subjects/edit_distance/README.md index 507eab34..81b75a8d 100644 --- a/subjects/edit_distance/README.md +++ b/subjects/edit_distance/README.md @@ -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)