Improve working and correctness of doc-comment (#256)
Semántico sayk'uy
Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.
1 qillqakuna · +3 −1
- src/tree.rs +3 −1
diff --git a/src/tree.rs b/src/tree.rs
index 6645234c9..ddd05b965 100644
--- a/src/tree.rs
+++ b/src/tree.rs
@@ -32,7 +32,9 @@ pub trait LayoutTree {
/// Modify the node's output layout
fn layout_mut(&mut self, node: Node) -> &mut Layout;
- /// Mark a node as finished
+ /// Mark a node as dirty to tell Taffy that something has changed and it needs to be recomputed.
+ ///
+ /// Commonly done if the style of the node has changed.
fn mark_dirty(&mut self, node: Node) -> TaffyResult<()>;
/// Measure a node. Taffy uses this to force reflows of things like text and overflowing content.