fix(storage-listx): fix listx lpush

This commit is contained in:
bandl 2021-11-27 21:53:12 +08:00
parent ead796d7c2
commit 8014cf7e1a
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ func (l *Listx) LPush(valueStr ...string) structure.UpdateLength {
// 使用第一个元素尝试初始化列表
updateLength := l.initByValue(valueStr[0])
for i := 1; i < len(valueStr); i++ {
for i := 0; i < len(valueStr); i++ {
head := l.head
val := structure.NewValue(valueStr[i])
node := &ListxNode{val: val}