Skip to content

Commit 19cfb21

Browse files
authored
Couple typo fix (redis#1285)
1 parent e6d396c commit 19cfb21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commands/stralgo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The STRALGO implements complex algorithsm that operate on strings.
1+
The STRALGO implements complex algorithms that operate on strings.
22
Right now the only algorithm implemented is the LCS algorithm (longest common
33
substring). However new algorithms could be implemented in the future.
44
The goal of this command is to provide to Redis users algorithms that need
@@ -16,7 +16,7 @@ STRALGO LCS [KEYS ...] [STRINGS ...] [LEN] [IDX] [MINRANGELEN] [WITHRANGELEN]
1616

1717
The LCS subcommand implements the longest common subsequence algorithm. Note that this is different than the longest common string algorithm, since matching characters in the string does not need to be contiguous.
1818

19-
For instane the LCS between "foo" and "fao" is "fo", since scanning the two strings from left to right, the longest common set of characters is composed of the first "f" and then the "o".
19+
For instance the LCS between "foo" and "fao" is "fo", since scanning the two strings from left to right, the longest common set of characters is composed of the first "f" and then the "o".
2020

2121
LCS is very useful in order to evaluate how similar two strings are. Strings can represent many things. For instance if two strings are DNA sequences, the LCS will provide a measure of similarity between the two DNA sequences. If the strings represent some text edited by some user, the LCS could represent how different the new text is compared to the old one, and so forth.
2222

@@ -29,7 +29,7 @@ The basic usage is the following:
2929
"mytext"
3030
```
3131

32-
It is possible to also compute the LCS between the contet of two keys:
32+
It is possible to also compute the LCS between the content of two keys:
3333

3434
```
3535
> MSET key1 ohmytext key2 mynewtext

0 commit comments

Comments
 (0)