diff --git a/commands/lpop.md b/commands/lpop.md index cb427810..513cf941 100644 --- a/commands/lpop.md +++ b/commands/lpop.md @@ -1,8 +1,7 @@ -Removes and returns the first elements of the list stored at `key`. - By default, the command pops a single element from the beginning of the list. When provided with the optional `count` argument, the reply will consist of up to `count` elements, depending on the list's length. +Deletes the list if the last element was popped. ## Examples diff --git a/commands/rpop.md b/commands/rpop.md index e677b37f..741deddd 100644 --- a/commands/rpop.md +++ b/commands/rpop.md @@ -1,8 +1,7 @@ -Removes and returns the last elements of the list stored at `key`. - By default, the command pops a single element from the end of the list. When provided with the optional `count` argument, the reply will consist of up to `count` elements, depending on the list's length. +Deletes the list if the last element was popped. ## Examples