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 GitHub
parent 9f2ea5892e
commit fc0674d2d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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]