Skip to content

Commit 236e36b

Browse files
authored
Merge pull request #10 from urigoren/patch-1
Bug fix
2 parents 9a77d7a + 5f6717f commit 236e36b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strsimpy/levenshtein.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def distance(self, s0, s1):
3333
if len(s0) == 0:
3434
return len(s1)
3535
if len(s1) == 0:
36-
return len(s1)
36+
return len(s0)
3737

3838
v0 = [0] * (len(s1) + 1)
3939
v1 = [0] * (len(s1) + 1)

0 commit comments

Comments
 (0)