Skip to content

Commit 611cfb4

Browse files
committed
fix: variable name
1 parent a07b77c commit 611cfb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strings/boyer_moore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ void pat_test(const char* text) {
237237

238238
assert(indexes.size() == 6);
239239

240-
for (const auto& idx : indexes) {
241-
assert(strings::boyer_moore::is_prefix(text + idx, "pat", 3));
240+
for (const auto& currentIndex : indexes) {
241+
assert(strings::boyer_moore::is_prefix(text + currentIndex, "pat", 3));
242242
}
243243
}
244244
/**

0 commit comments

Comments
 (0)