Skip to content

Commit b91a580

Browse files
committed
Another modernization fix
1 parent f75f62d commit b91a580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func printValue(tw *tabwriter.Writer, v reflect.Value, indent int, visited map[u
360360

361361
// Default rendering for other slices/arrays
362362
fmt.Fprintln(tw, "[")
363-
for i := 0; i < v.Len(); i++ {
363+
for i := range v.Len() {
364364
if i >= maxItems {
365365
indentPrint(tw, indent+1, colorize(colorGray, "... (truncated)\n"))
366366
break

0 commit comments

Comments
 (0)