summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kun <j2kun@users.noreply.github.com>2021-06-07 04:31:56 -0700
committerGitHub <noreply@github.com>2021-06-07 14:31:56 +0300
commitb438bc5a0bd0ec98681151a32a05845ffc917871 (patch)
tree8875ab4ea352629f3dcb574f0aeb50a621e215a5
parenta972503f57005251bf5d05417f6a655a88ce35f1 (diff)
downloadredis-b438bc5a0bd0ec98681151a32a05845ffc917871.tar.gz
comment typo: form -> from (#8921)
-rw-r--r--src/hyperloglog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hyperloglog.c b/src/hyperloglog.c
index 75a04227c..94ae2a85b 100644
--- a/src/hyperloglog.c
+++ b/src/hyperloglog.c
@@ -1033,7 +1033,7 @@ uint64_t hllCount(struct hllhdr *hdr, int *invalid) {
serverPanic("Unknown HyperLogLog encoding in hllCount()");
}
- /* Estimate cardinality form register histogram. See:
+ /* Estimate cardinality from register histogram. See:
* "New cardinality estimation algorithms for HyperLogLog sketches"
* Otmar Ertl, arXiv:1702.01284 */
double z = m * hllTau((m-reghisto[HLL_Q+1])/(double)m);