tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definitions

Fix Todo note (#156)

db25d95eb3653c54be63fe2b20b139faa6c59d47 · by Andreas Weibye · (4 years ago) · parent b1ea67945 · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +1 −1

diff --git a/src/node.rs b/src/node.rs
index d92ea10cf..502f16e9c 100644
--- a/src/node.rs
+++ b/src/node.rs
@@ -214,7 +214,7 @@ impl Taffy {
     ) -> Result<Node, error::InvalidChild> {
         let node_id = self.find_node(parent).map_err(|e| error::InvalidChild::InvalidParentNode(e.0))?;
         let child_id = self.find_node(new_child).map_err(|e| error::InvalidChild::InvalidChildNode(e.0))?;
-        // TODO: index check
+
         let child_count = self.forest.children[node_id].len();
         if child_index >= child_count {
             return Err(error::InvalidChild::ChildIndexOutOfBounds { parent, child_index, child_count });