Skip to content

Commit 2b8ce8d

Browse files
committed
fix(levenshteinDistance): repair code block
1 parent 2d2df82 commit 2b8ce8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets_archive/levenshteinDistance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Calculates the [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_
55
Calculates the number of changes (substitutions, deletions or additions) required to convert `string1` to `string2`.
66
Can also be used to compare two strings as shown in the second example.
77

8-
``` js
8+
```js
99
const levenshteinDistance = (string1, string2) => {
1010
if (string1.length === 0) return string2.length;
1111
if (string2.length === 0) return string1.length;

0 commit comments

Comments
 (0)