Skip to content

Commit 5a026c4

Browse files
committed
simpler code for readme
1 parent 86ea3aa commit 5a026c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ h.set_parent(child, root, position); // ...at a specific position
3838
h.order_child_before(child_a, child_b); // reorder siblings
3939
4040
// traversal
41-
for (auto g = entttree::walk::dfs(h.traverse(root, SiblingOrder::Forward)); g; ++g) {
41+
for (auto g = h.traverse_dfs(root, SiblingOrder::Forward, DfsOrder::ShallowFirst); g; ++g) {
4242
// visit nodes depth-first
4343
}
4444

0 commit comments

Comments
 (0)