Fixes some typos (#8874)

This commit is contained in:
Andy Pan 2021-04-27 19:25:02 +08:00 committed by GitHub
parent 93e7750699
commit 3d56be3788
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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
*

View File

@ -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,