Skip to content

Commit

Permalink
🐞 fix: compatible with older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sohaha committed Jul 4, 2024
1 parent 8d0970f commit 67cb957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zarray/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package zarray

import (
"math/rand"
"sync/atomic"

"github.com/sohaha/zlsgo/zstring"
"github.com/sohaha/zlsgo/zsync"
"github.com/sohaha/zlsgo/zutil"
)

// CopySlice copy a slice.
Expand Down Expand Up @@ -43,7 +43,7 @@ func Map[T any, R any](collection []T, iteratee func(int, T) R, parallel ...uint
}

var (
idx atomic.Int64
idx = zutil.NewInt64(0)
wg zsync.WaitGroup
)

Expand Down

0 comments on commit 67cb957

Please sign in to comment.