Skip to content

Commit 02cd678

Browse files
committed
1 parent 4b4a09d commit 02cd678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsutils/suggestionList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class LexicalDistance {
8787
);
8888

8989
if (i > 1 && j > 1 && a[i - 1] === b[j - 2] && a[i - 2] === b[j - 1]) {
90-
d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + cost);
90+
d[i][j] = Math.min(d[i][j], d[i - 2][j - 2] + 1);
9191
}
9292
}
9393
}

0 commit comments

Comments
 (0)