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:09:46 +0200
commit8b3d5a8eb0a7ef38c57d7192f25488a5a8b3dc18 (patch)
treea42c9d719581a31df4378ec9e4eedf5f40d3db57
parent46f9a78d9cea2b6e5ffde495a053593c2711a4a1 (diff)
downloadredis-8b3d5a8eb0a7ef38c57d7192f25488a5a8b3dc18.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);