summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-04-14 12:12:53 +0200
committerantirez <antirez@gmail.com>2014-04-16 15:26:27 +0200
commit4cd11077d2dda4b3dfa7ca960825a6a36afc9ae9 (patch)
tree94e3da5a0484077e4401f057335d58d51e8043ce
parent08183cfef543965c7bccb10eede27c5d613b6a28 (diff)
downloadredis-4cd11077d2dda4b3dfa7ca960825a6a36afc9ae9.tar.gz
Comment typo in hllSparseAdd(). first -> fits.
-rw-r--r--src/hyperloglog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hyperloglog.c b/src/hyperloglog.c
index c600c3c08..06afc3637 100644
--- a/src/hyperloglog.c
+++ b/src/hyperloglog.c
@@ -824,7 +824,7 @@ updated:
continue;
}
/* We need two adjacent VAL opcodes to try a merge, having
- * the same value, and a len that first the VAL opcode max len. */
+ * the same value, and a len that fits the VAL opcode max len. */
if (p+1 < end && HLL_SPARSE_IS_VAL(p+1)) {
int v1 = HLL_SPARSE_VAL_VALUE(p);
int v2 = HLL_SPARSE_VAL_VALUE(p+1);