diff --git a/report/comparisonOfMeans.go b/report/comparisonOfMeans.go index fe8ed73..aed0a04 100644 --- a/report/comparisonOfMeans.go +++ b/report/comparisonOfMeans.go @@ -35,9 +35,10 @@ func SaveComparisonOfMeans(p PicList, benchCount int) { // split the slice to smaller, per-bench slices. for i := 0; i < len(p.Pics); i += benchCount { - pL := &PicList{} - pL.Pics = p.Pics[i : i+benchCount] - pL.Bench = p.Pics[i].Bench + pL := &PicList{ + Pics: p.Pics[i : i+benchCount], + Bench: p.Pics[i].Bench, + } benchPicLists = append(benchPicLists, *pL) }