FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge branch 'master' of https://github.com/trekhleb/javascript-algor… · MattyPy/javascript-algorithms@f696d02 · GitHub

Commit f696d02

Browse files
committed
2 parents 5503cce + 2532e3c commit f696d02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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
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)

Back | FazBrowse Home | New Git URL