Skip to content

Commit 0501c62

Browse files
Merge pull request #746 from ShooterIT/spelling
fix spelling mistakes
2 parents c96d492 + 386b995 commit 0501c62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hiredis.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ typedef struct redisReply {
101101
double dval; /* The double when type is REDIS_REPLY_DOUBLE */
102102
size_t len; /* Length of string */
103103
char *str; /* Used for REDIS_REPLY_ERROR, REDIS_REPLY_STRING
104-
and REDIS_REPLY_DOUBLE (in additionl to dval). */
104+
and REDIS_REPLY_DOUBLE (in additional to dval). */
105105
size_t elements; /* number of elements, for REDIS_REPLY_ARRAY */
106106
struct redisReply **element; /* elements vector for REDIS_REPLY_ARRAY */
107107
} redisReply;

read.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static int processLineItem(redisReader *r) {
297297
if (strcasecmp(buf,",inf") == 0) {
298298
d = INFINITY; /* Positive infinite. */
299299
} else if (strcasecmp(buf,",-inf") == 0) {
300-
d = -INFINITY; /* Nevative infinite. */
300+
d = -INFINITY; /* Negative infinite. */
301301
} else {
302302
d = strtod((char*)buf,&eptr);
303303
if (buf[0] == '\0' || eptr[0] != '\0' || isnan(d)) {

0 commit comments

Comments
 (0)