mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 05:40:26 +08:00
chore: update evaluate.py
occurence -> occurrence
This commit is contained in:
parent
9f2ea5892e
commit
29d3b7d6e3
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user