From ed0c4e3fefed08da8997020861794c4b4a4f3f5b Mon Sep 17 00:00:00 2001 From: Binbin Date: Tue, 21 Mar 2023 19:01:45 +0800 Subject: [PATCH 1/2] Fix wrong documentation --- docs/supported-commands.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/supported-commands.md b/docs/supported-commands.md index bcbf7e6d..d83a03a8 100644 --- a/docs/supported-commands.md +++ b/docs/supported-commands.md @@ -55,8 +55,8 @@ | blpop | √ | | | brpop | √ | | | brpoplpush | X | | -| lindex | √ | Caution: linsert is O(N) operation, don't use it when list was extreme long | -| linsert | √ | | +| lindex | √ | Caution: lindex is O(N) operation, don't use it when list was extreme long | +| linsert | √ | Caution: linsert is O(N) operation, don't use it when list was extreme long | | llen | √ | | | lpop | √ | | | lpush | √ | | From a3762d649d6b3e39d4efb8f071ea2244d477c54d Mon Sep 17 00:00:00 2001 From: Binbin Date: Tue, 21 Mar 2023 22:27:56 +0800 Subject: [PATCH 2/2] CR from torwig, change to to be precise --- docs/supported-commands.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/supported-commands.md b/docs/supported-commands.md index d83a03a8..9bcddf57 100644 --- a/docs/supported-commands.md +++ b/docs/supported-commands.md @@ -55,16 +55,16 @@ | blpop | √ | | | brpop | √ | | | brpoplpush | X | | -| lindex | √ | Caution: lindex is O(N) operation, don't use it when list was extreme long | -| linsert | √ | Caution: linsert is O(N) operation, don't use it when list was extreme long | +| lindex | √ | Caution: lindex is O(N) operation, don't use it when list is extremely long | +| linsert | √ | Caution: linsert is O(N) operation, don't use it when list is extremely long | | llen | √ | | | lpop | √ | | | lpush | √ | | | lpushx | √ | | | lrange | √ | | -| lrem | √ | Caution: lrem is O(N) operation, don't use it when list was extreme long | +| lrem | √ | Caution: lrem is O(N) operation, don't use it when list is extremely long | | lset | √ | | -| ltrim | √ | Caution: ltrim is O(N) operation, don't use it when list was extreme long | +| ltrim | √ | Caution: ltrim is O(N) operation, don't use it when list is extremely long | | rpop | √ | | | rpoplpush | √ | | | rpush | √ | |