mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Revert 2d00790e7472e753c006e3d1c14327209ebf9879...ce4831f778585d51acfceb4ef649140bab6f4ed8 on SliceTricks
parent
ce4831f778
commit
8babc3774c
@ -182,7 +182,7 @@ batchSize := 3
|
||||
var batches [][]int
|
||||
|
||||
for batchSize < len(actions) {
|
||||
actions, batches = actions[batchSize:], append(batches, actions[0:batchSize])
|
||||
actions, batches = actions[batchSize:], append(batches, actions[0:batchSize:batchSize])
|
||||
}
|
||||
batches = append(batches, actions)
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user