Skip to content

Commit 1baae2d

Browse files
authored
Merge pull request #62 from alibuild/alibot-cleanup-15525
Please consider the following formatting changes to #15525
2 parents 95cb6b6 + 98f3fc0 commit 1baae2d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Common/Utils/include/CommonUtils/ConfigurableParamHelper.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ inline std::size_t damerauLevenshteinDistance(std::string_view a, std::string_vi
4848
curr[0] = i;
4949
for (std::size_t j = 1; j <= m; ++j) {
5050
std::size_t cost = (a[i - 1] == b[j - 1]) ? 0 : 1;
51-
curr[j] = std::min({
52-
prev[j] + 1,
53-
curr[j - 1] + 1,
54-
prev[j - 1] + cost});
51+
curr[j] = std::min({prev[j] + 1,
52+
curr[j - 1] + 1,
53+
prev[j - 1] + cost});
5554
if (i > 1 && j > 1 && a[i - 1] == b[j - 2] &&
5655
a[i - 2] == b[j - 1]) {
5756
curr[j] = std::min(curr[j], prev2[j - 2] + 1);

0 commit comments

Comments
 (0)