diff --git a/parser/preproc_test.go b/parser/preproc_test.go index ce5af92..8183e28 100644 --- a/parser/preproc_test.go +++ b/parser/preproc_test.go @@ -502,7 +502,7 @@ func TestSelfIncludeIsDetected(t *testing.T) { func TestDeepIncludeChainCompletes(t *testing.T) { const depth = 2000 dir := t.TempDir() - for i := 0; i < depth; i++ { + for i := range depth { var content string if i == depth-1 { content = "#define DEEPEST $7\n"