]> 127.0.0.1 Git - part/.git/commitdiff
fix v0.21.0
authorqydysky <32743305+qydysky@users.noreply.github.com>
Wed, 18 Jan 2023 07:53:41 +0000 (15:53 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Wed, 18 Jan 2023 07:53:41 +0000 (15:53 +0800)
pool/Pool.go

index c025df61b39010600f1d4dee1704356a09d5b4c6..f6135e2ab8fc1367a4cf998d9e3e22e34574338e 100644 (file)
@@ -29,7 +29,7 @@ func (t *buf[T]) Trim() {
        for i := 0; i < len(t.buf); i++ {
                if !t.validF(t.buf[i]) {
                        t.buf[i] = nil
-                       t.buf = append(t.buf[:i], t.buf[i:]...)
+                       t.buf = append(t.buf[:i], t.buf[i+1:]...)
                        i--
                }
        }