Skip to content

Commit 41d11f2

Browse files
authoredMay 24, 2018
Fix a typo
1 parent 99bef39 commit 41d11f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

+1-1
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
const distanceMatrix = 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 (let i = 0; i <= a.length; i += 1) {

0 commit comments

Comments
 (0)
Please sign in to comment.