Skip to content

Commit 2532e3c

Browse files
authored
Merge pull request trekhleb#14 from TomasHubelbauer/patch-1
Fix a typo
2 parents f0ddaf2 + 6ea857c commit 2532e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/algorithms/string/levenshtein-distance/levenshteinDistance.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function levenshteinDistance(a, b){
88
// substrings of a to substrings of b.
99
constdistanceMatrix=Array(b.length+1).fill(null).map(()=>Array(a.length+1).fill(null));
1010

11-
// Fill the first raw of the matrix.
11+
// Fill the first row of the matrix.
1212
// If this is first row then we're transforming empty string to a.
1313
// In this case the number of transformations equals to size of a substring.
1414
for(leti=0;i<=a.length;i+=1){

0 commit comments

Comments
(0)