Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
719b7665
Unverified
Commit
719b7665
authored
Apr 24, 2022
by
Lu JJ
Committed by
GitHub
Apr 24, 2022
Browse files
fix typo in "lcsCommand" doc comment (#10622)
fix typo. `LCS[j+(blen+1)*j]` -> `LCS[j+(blen+1)*i]`
parent
3cd8baf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_string.c
View file @
719b7665
...
@@ -792,7 +792,7 @@ void lcsCommand(client *c) {
...
@@ -792,7 +792,7 @@ void lcsCommand(client *c) {
/* Setup an uint32_t array to store at LCS[i,j] the length of the
/* 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
* 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))]
#define LCS(A,B) lcs[(B)+((A)*(blen+1))]
/* Try to allocate the LCS table, and abort on overflow or insufficient memory. */
/* Try to allocate the LCS table, and abort on overflow or insufficient memory. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment