From c65e5087e8e88104f7cdd640aa9d1af0737561a3 Mon Sep 17 00:00:00 2001 From: hdyztmdqd Date: Tue, 14 Jun 2022 13:09:08 +0800 Subject: [PATCH] Fix 2 comments in dict.c & redis-cli.c (#10860) * fix comment in dict.c fix comment in dict.c * Fix comment in redis-cli.c Fix comment in redis-cli.c --- src/dict.c | 2 +- src/redis-cli.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dict.c b/src/dict.c index 9d96c6c27..cb6850027 100644 --- a/src/dict.c +++ b/src/dict.c @@ -282,7 +282,7 @@ int dictRehashMilliseconds(dict *d, int ms) { /* This function performs just a step of rehashing, and only if hashing has * not been paused for our hash table. When we have iterators in the * middle of a rehashing we can't mess with the two hash tables otherwise - * some element can be missed or duplicated. + * some elements can be missed or duplicated. * * This function is called by common lookup or update operations in the * dictionary so that the hash table automatically migrates from H1 to H2 diff --git a/src/redis-cli.c b/src/redis-cli.c index 485076792..444d9af0a 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -7489,7 +7489,7 @@ struct distsamples { * of the collected samples targeting an xterm 256 terminal. * * Takes an array of distsamples structures, ordered from smaller to bigger - * 'max' value. Last sample max must be 0, to mean that it olds all the + * 'max' value. Last sample max must be 0, to mean that it holds all the * samples greater than the previous one, and is also the stop sentinel. * * "tot' is the total number of samples in the different buckets, so it