Skip to content

Commit 066764b

Browse files
committed
Fix variable names
1 parent 6d8e9b5 commit 066764b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strings/manacher.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ func manacherIndex*(s: string): HSlice[int, int] {.raises: [ValueError].} =
5555

5656
func manacherString*(s: string): string {.raises: [ValueError].} =
5757
## Returns the longest palindrome
58-
return s[manacher_index(s)]
58+
return s[manacherIndex(s)]
5959

6060
func manacherLength*(s: string): int {.raises: [ValueError].} =
6161
## Returns the length of the longest palindrome
6262
let
63-
res = manacher_index(s)
63+
res = manacherIndex(s)
6464
(i, j) = (res.a, res.b)
6565
return j - i + 1
6666

0 commit comments

Comments
 (0)