diff options
Diffstat (limited to 'src/pprint.cpp')
-rw-r--r-- | src/pprint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pprint.cpp b/src/pprint.cpp index 2a8a62d..80a2519 100644 --- a/src/pprint.cpp +++ b/src/pprint.cpp @@ -205,8 +205,8 @@ print_to(ostream& out, const AST* ast, unsigned indent, CEnv* cenv, bool types) } else { // Print on multiple lines if list contains lists - for (ATuple::const_iterator ti = tup->begin(); ti != tup->end(); ++ti) { - if ((*ti)->to_tuple()) { + for (auto ti : *tup) { + if (ti->to_tuple()) { print_list(out, tup, i, indent + head_width, cenv, types, false); return out; } |