We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb344bb commit 6a58e66Copy full SHA for 6a58e66
rwkv_pip_package/src/rwkv/utils.py
@@ -9,7 +9,7 @@
9
10
11
def end_overlap(a, b):
12
- for i in range(1, len(a) + 1):
+ for i in reversed(range(1, len(a) + 1)):
13
if b.startswith(a[-i:]):
14
return i
15
return 0
0 commit comments