Skip to content

Commit e91996e

Browse files
committed
recursive_set documentation is revised
1 parent 74f8c4f commit e91996e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/node_mut.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,8 +2463,10 @@ where
24632463
/// Recursively sets the data of all nodes belonging to the subtree rooted at this node using the `compute_data`
24642464
/// function.
24652465
///
2466-
/// Alternatively, sets values of all nodes when the value of a node is defined as a function of its prior value
2467-
/// and values of its children (hence, it recursively depends on values of all descendants).
2466+
/// This method provides an expressive way to update the values of a tree where value of a node is a function of
2467+
/// its prior value and values of its children. Since the values of its children subsequently depend on their own
2468+
/// children, it immediately follows that the value of the node depends on values of all of its descendants that
2469+
/// must be computed to be able to compute the node's value.
24682470
///
24692471
/// The `compute_data` function takes two arguments:
24702472
///

0 commit comments

Comments
 (0)