From 719b7665860674b9dcf69c4141fb19727b03a250 Mon Sep 17 00:00:00 2001 From: Lu JJ <41555481+ncghost1@users.noreply.github.com> Date: Sun, 24 Apr 2022 15:19:46 +0800 Subject: [PATCH] fix typo in "lcsCommand" doc comment (#10622) fix typo. `LCS[j+(blen+1)*j]` -> `LCS[j+(blen+1)*i]` --- src/t_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/t_string.c b/src/t_string.c index 6ccc7436d..7b67b78ce 100644 --- a/src/t_string.c +++ b/src/t_string.c @@ -792,7 +792,7 @@ void lcsCommand(client *c) { /* Setup an uint32_t array to store at LCS[i,j] the length of the * LCS A0..i-1, B0..j-1. Note that we have a linear array here, so - * we index it as LCS[j+(blen+1)*j] */ + * we index it as LCS[j+(blen+1)*i] */ #define LCS(A,B) lcs[(B)+((A)*(blen+1))] /* Try to allocate the LCS table, and abort on overflow or insufficient memory. */