From 1c733df3d87bde1d9f8228b03f078e4190d782de Mon Sep 17 00:00:00 2001 From: chenhui0212 Date: Tue, 16 Jun 2020 17:50:38 +0800 Subject: [PATCH] fix comments in listpack.c (cherry picked from commit 6b82471098a03babcd9cd9a2ff63ba0d138a4279) --- src/listpack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/listpack.c b/src/listpack.c index e1f4d9a02..9e77ab12d 100644 --- a/src/listpack.c +++ b/src/listpack.c @@ -773,13 +773,13 @@ unsigned char *lpSeek(unsigned char *lp, long index) { * is past the half of the listpack. */ if (index > numele/2) { forward = 0; - /* Left to right scanning always expects a negative index. Convert + /* Right to left scanning always expects a negative index. Convert * our index to negative form. */ index -= numele; } } else { /* If the listpack length is unspecified, for negative indexes we - * want to always scan left-to-right. */ + * want to always scan right-to-left. */ if (index < 0) forward = 0; }