From 9e5f45f2306e1fd31a6f1eb6e333b2c83f2a426e Mon Sep 17 00:00:00 2001 From: Gabi Ganam Date: Thu, 22 Jun 2023 18:10:42 +0300 Subject: [PATCH] Fix typos in comments (#12338) --- src/t_list.c | 2 +- src/t_stream.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/t_list.c b/src/t_list.c index 6e4f629dc..dc16606c9 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -240,7 +240,7 @@ listTypeIterator *listTypeInitIterator(robj *subject, long index, li->direction = direction; li->iter = NULL; /* LIST_HEAD means start at TAIL and move *towards* head. - * LIST_TAIL means start at HEAD and move *towards tail. */ + * LIST_TAIL means start at HEAD and move *towards* tail. */ if (li->encoding == OBJ_ENCODING_QUICKLIST) { int iter_direction = direction == LIST_HEAD ? AL_START_TAIL : AL_START_HEAD; li->iter = quicklistGetIteratorAtIdx(li->subject->ptr, diff --git a/src/t_stream.c b/src/t_stream.c index 16083b7e5..5fcb631ab 100644 --- a/src/t_stream.c +++ b/src/t_stream.c @@ -461,7 +461,7 @@ int streamAppendItem(stream *s, robj **argv, int64_t numfields, streamID *added_ } /* Avoid overflow when trying to add an element to the stream (listpack - * can only host up to 32bit length sttrings, and also a total listpack size + * can only host up to 32bit length strings, and also a total listpack size * can't be bigger than 32bit length. */ size_t totelelen = 0; for (int64_t i = 0; i < numfields*2; i++) {