Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 41d11f2

Browse files
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‎

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)

AltStyle によって変換されたページ (->オリジナル) /