summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Pan <panjf2000@gmail.com>2021-04-27 19:25:02 +0800
committerGitHub <noreply@github.com>2021-04-27 14:25:02 +0300
commit3d56be3788a68d81ddb259197b0b2f4149bd94cb (patch)
treee4b4c8642a198f389405ecac9fbd9fc3ad0d7cc6 /src
parent93e775069959c741b3719a9e85cbe0a82478959c (diff)
downloadredis-3d56be3788a68d81ddb259197b0b2f4149bd94cb.tar.gz
Fixes some typos (#8874)
Diffstat (limited to 'src')
-rw-r--r--src/t_hash.c2
-rw-r--r--src/t_list.c2
-rw-r--r--src/t_stream.c2
-rw-r--r--src/t_string.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/t_hash.c b/src/t_hash.c
index d88b80b0f..4de2ea62c 100644
--- a/src/t_hash.c
+++ b/src/t_hash.c
@@ -546,7 +546,7 @@ robj *hashTypeDup(robj *o) {
return hobj;
}
-/* callback for to check the ziplist doesn't have duplicate recoreds */
+/* callback for to check the ziplist doesn't have duplicate records */
static int _hashZiplistEntryValidation(unsigned char *p, void *userdata) {
struct {
long count;
diff --git a/src/t_list.c b/src/t_list.c
index f8ca27458..01fb4eee5 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -562,7 +562,7 @@ void ltrimCommand(client *c) {
*
* If COUNT is given, instead of returning the single element, a list of
* all the matching elements up to "num-matches" are returned. COUNT can
- * be combiled with RANK in order to returning only the element starting
+ * be combined with RANK in order to returning only the element starting
* from the Nth. If COUNT is zero, all the matching elements are returned.
*
* MAXLEN tells the command to scan a max of len elements. If zero (the
diff --git a/src/t_stream.c b/src/t_stream.c
index 1b2fe3262..933ab2ff0 100644
--- a/src/t_stream.c
+++ b/src/t_stream.c
@@ -1376,7 +1376,7 @@ void streamPropagateXCLAIM(client *c, robj *key, streamCG *group, robj *groupnam
decrRefCount(argv[13]);
}
-/* We need this when we want to propoagate the new last-id of a consumer group
+/* We need this when we want to propagate the new last-id of a consumer group
* that was consumed by XREADGROUP with the NOACK option: in that case we can't
* propagate the last ID just using the XCLAIM LASTID option, so we emit
*
diff --git a/src/t_string.c b/src/t_string.c
index 0967e30e1..9228c5ed0 100644
--- a/src/t_string.c
+++ b/src/t_string.c
@@ -836,7 +836,7 @@ void stralgoLCS(client *c) {
* it backward, but the length is already known, we store it into idx. */
uint32_t idx = LCS(alen,blen);
sds result = NULL; /* Resulting LCS string. */
- void *arraylenptr = NULL; /* Deffered length of the array for IDX. */
+ void *arraylenptr = NULL; /* Deferred length of the array for IDX. */
uint32_t arange_start = alen, /* alen signals that values are not set. */
arange_end = 0,
brange_start = 0,