summaryrefslogtreecommitdiff
path: root/src/hyperloglog.c
diff options
context:
space:
mode:
authorJack Drogon <jack.xsuperman@gmail.com>2018-07-01 13:24:50 +0800
committerSalvatore Sanfilippo <antirez@gmail.com>2018-07-03 18:19:46 +0200
commit93238575f77630f24e0472bdbf7eecb73a4652a8 (patch)
treefb075adb140513364b5d357c676196d33b709602 /src/hyperloglog.c
parent94b3ee61420f8638d9cdba32877864deef91d5e9 (diff)
downloadredis-93238575f77630f24e0472bdbf7eecb73a4652a8.tar.gz
Fix typo
Diffstat (limited to 'src/hyperloglog.c')
-rw-r--r--src/hyperloglog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hyperloglog.c b/src/hyperloglog.c
index 01a409bb5..ba3a3ab60 100644
--- a/src/hyperloglog.c
+++ b/src/hyperloglog.c
@@ -673,7 +673,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) {
end = p + sdslen(o->ptr) - HLL_HDR_SIZE;
first = 0;
- prev = NULL; /* Points to previos opcode at the end of the loop. */
+ prev = NULL; /* Points to previous opcode at the end of the loop. */
next = NULL; /* Points to the next opcode at the end of the loop. */
span = 0;
while(p < end) {
@@ -764,7 +764,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) {
* and is either currently represented by a VAL opcode with len > 1,
* by a ZERO opcode with len > 1, or by an XZERO opcode.
*
- * In those cases the original opcode must be split into muliple
+ * In those cases the original opcode must be split into multiple
* opcodes. The worst case is an XZERO split in the middle resuling into
* XZERO - VAL - XZERO, so the resulting sequence max length is
* 5 bytes.
@@ -887,7 +887,7 @@ promote: /* Promote to dense representation. */
*
* Note that this in turn means that PFADD will make sure the command
* is propagated to slaves / AOF, so if there is a sparse -> dense
- * convertion, it will be performed in all the slaves as well. */
+ * conversion, it will be performed in all the slaves as well. */
int dense_retval = hllDenseSet(hdr->registers,index,count);
serverAssert(dense_retval == 1);
return dense_retval;