diff --git a/examples/sensors/main.go b/examples/sensors/main.go index ba5a330..0148850 100644 --- a/examples/sensors/main.go +++ b/examples/sensors/main.go @@ -80,11 +80,9 @@ func eventloop() { resetSysinset(e.Insets) sysinset.Layout(gtx, func() { margin.Layout(gtx, func() { - for i := 0; i < len(labels); i++ { - list.Layout(gtx, len(labels), func(i int) { - labels[i].Layout(gtx) - }) - } + list.Layout(gtx, len(labels), func(i int) { + labels[i].Layout(gtx) + }) }) }) w.Update(gtx.Ops)