clarify comment

pull/34677/head
Daniel Schmidt 2 years ago
parent 2a625b75a4
commit 1531fee472
No known key found for this signature in database
GPG Key ID: 377C3A4D62FBBBE2

@ -35,9 +35,8 @@ func TransformSlice[Input any](before, after []Input, process TransformIndices,
}
func ProcessSlice[Input any](before, after []Input, process ProcessIndices, isObjType IsObjType[Input]) {
// If before and after are the same length we want to compare elements
// on an individual basis
// If before and after are the same length and is not a reordering
// we want to compare elements on an individual basis
if len(before) == len(after) && !isReorder(before, after) {
for ix := range before {
process(ix, ix)

Loading…
Cancel
Save