chore: update evaluate.py

occurence -> occurrence
This commit is contained in:
Ikko Eltociear Ashimine 2024-12-15 22:43:46 +09:00 committed by GitHub
parent 9f2ea5892e
commit 29d3b7d6e3
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]