Skip to content

Commit

Permalink
fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Jan 25, 2024
1 parent f479d39 commit b6e1cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Levenshtein/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def ratio(s1, s2, *, processor=None, score_cutoff=None):
The indel distance calculates the minimum number of insertions and deletions
required to change one sequence into the other.
This is calculated as ``1 - (indel / max(len1, len2))``
This is calculated as ``1 - (distance / (len1 + len2))``
Parameters
----------
Expand Down

0 comments on commit b6e1cd6

Please sign in to comment.