]> 127.0.0.1 Git - part/.git/commitdiff
fix v0.21.2
authorqydysky <32743305+qydysky@users.noreply.github.com>
Wed, 18 Jan 2023 13:59:10 +0000 (21:59 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Wed, 18 Jan 2023 13:59:10 +0000 (21:59 +0800)
slice/Slice.go

index 302565242b0d11c0c34415250c5285374de69088..59f158abba036fb7ca4bde7a48cd683368df764c 100644 (file)
@@ -33,7 +33,6 @@ func (t *Buf[T]) Clear() {
        defer t.Unlock()
        t.buf = nil
        t.bufsize = 0
-       t.modified.t += 1
 }
 
 func (t *Buf[T]) Size() int {
@@ -55,7 +54,6 @@ func (t *Buf[T]) Reset() {
        defer t.Unlock()
 
        t.bufsize = 0
-       t.modified.t += 1
 }
 
 func (t *Buf[T]) Append(data []T) error {