chore: update evaluate.py (#1159)

occurence -> occurrence
This commit is contained in:
Ikko Eltociear Ashimine 2024-12-15 23:06:29 +09:00 committed by Billel Mokeddem
parent 46fd8b7c53
commit fb3d0526a2

View File

@ -32,7 +32,7 @@ def _len_longest_common_prefix(a, b):
def _rstrip_until(s, untils):
"""Limit a string <s> to the first occurence of any substring in untils."""
"""Limit a string <s> to the first occurrence of any substring in untils."""
l = len(s)
f = [s.find(u) for u in untils]
f = [l if x < 0 else x for x in f]