Skip to content

Commit 9cd35ff

Browse files
committed
Compat with 1.6
1 parent 9f2c116 commit 9cd35ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Strings.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,12 @@ function pretty_string_graph(
205205
# We also want to print the final expression:
206206
push!(iter, (node=tree, index=length(iter) + 1))
207207

208-
for (; node, index) in iter
208+
# TODO: Switch to this syntax when 1.6 is deprecated
209+
# for (; node, index) in iter
210+
for elem in iter
211+
node = elem.node
212+
index = elem.index
213+
209214
raw_output, _ = tree_mapreduce(
210215
leaf -> _leaf_string_or_shared_variable(
211216
index, leaf, shared_nodes; f_variable, f_constant, variable_names

0 commit comments

Comments
 (0)