Skip to content

Commit b6cbeba

Browse files
authored
Fix typo in comment about topk behavior
1 parent 6f18dbd commit b6cbeba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/cppunit/types/topk_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ TEST_F(RedisTopKTest, TestTopKAddAndQuery) {
112112
// heap is full, need remove values1.
113113
for (size_t i = 0; i < values2.size(); ++i) {
114114
bool found = false;
115-
// due to decay, topk is possiable to remove values1.
115+
// due to decay, topk is possible to remove values1.
116116
while (!found) {
117117
top_k_->Add(*ctx_, key_, values2[i]);
118118
top_k_->Query(*ctx_, key_, values2[i], &found);
@@ -133,4 +133,4 @@ TEST_F(RedisTopKTest, TestTopKAddAndQuery) {
133133
for (size_t i = 0; i < top_k_list.size(); ++i) {
134134
ASSERT_TRUE(values_set2.find(top_k_list[i]) != values_set2.end());
135135
}
136-
}
136+
}

0 commit comments

Comments
 (0)