mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-07 15:33:51 +00:00
style: pre-commit.ci fixes
This commit is contained in:
parent
dc79e7060b
commit
109eb34e29
@ -20,7 +20,7 @@
|
|||||||
// Levenshtein distance function code generated by chatgpt/copilot
|
// Levenshtein distance function code generated by chatgpt/copilot
|
||||||
std::size_t levenshteinDistance(const std::string &s1, const std::string &s2) {
|
std::size_t levenshteinDistance(const std::string &s1, const std::string &s2) {
|
||||||
std::size_t len1 = s1.size(), len2 = s2.size();
|
std::size_t len1 = s1.size(), len2 = s2.size();
|
||||||
if (len1 == 0 || len2 == 0) {
|
if(len1 == 0 || len2 == 0) {
|
||||||
return (std::max)(len1, len2);
|
return (std::max)(len1, len2);
|
||||||
}
|
}
|
||||||
std::vector<std::size_t> prev(len2 + 1), curr(len2 + 1);
|
std::vector<std::size_t> prev(len2 + 1), curr(len2 + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user