Skip to content

Commit

Permalink
fix root check comparison (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu authored Mar 19, 2022
1 parent 84d2a28 commit 437aa8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/printing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function _print_tree(printnode::Function,
# Print node representation

# Get node representation as string
toprint = tree != roottree && isa(treekind(roottree), IndexedTree) ? roottree[tree] : tree
toprint = tree !== roottree && isa(treekind(roottree), IndexedTree) ? roottree[tree] : tree
str = repr_node(toprint, context=io)

# Copy buffer to output, prepending prefix to each line
Expand Down

0 comments on commit 437aa8b

Please sign in to comment.