summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-04-14 12:12:53 +0200
committerantirez <antirez@gmail.com>2014-04-14 12:12:53 +0200
commit4e0a99ba51cf22ae695187e9215796f1c645a253 (patch)
tree2aabfecb8c81a0f100697440eaaef4baebb28904
parent5532b5308a65f627a5d9a17e4ae6da77fd95b8c2 (diff)
downloadredis-4e0a99ba51cf22ae695187e9215796f1c645a253.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);