tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81412 Definitions

fix copy paste error about low-level example description (#730)

the custom_tree_owned_partial description was the same as the unsafe example.

02453b2c47dd639e337294fcc98318232b2e93b4 · by Erik Sandrén · (2 years ago) · parent fae17c2b2 · 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/lib.rs b/src/lib.rs
index fa163db3c..baae4f79f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -54,7 +54,7 @@
 //! Examples which show usage of the low-level API are:
 //!
 //!   - [custom_tree_vec](https://github.com/DioxusLabs/taffy/blob/main/examples/custom_tree_vec.rs) which implements a custom Taffy tree using a `Vec` as an arena with NodeId's being index's into the Vec.
-//!   - [custom_tree_owned_partial](https://github.com/DioxusLabs/taffy/blob/main/examples/custom_tree_owned_partial.rs) which implements a custom Taffy tree using directly owned children with NodeId's being pointers.
+//!   - [custom_tree_owned_partial](https://github.com/DioxusLabs/taffy/blob/main/examples/custom_tree_owned_partial.rs) which implements a custom Taffy tree using directly owned children with NodeId's being index's into vec on parent node.
 //!   - [custom_tree_owned_unsafe](https://github.com/DioxusLabs/taffy/blob/main/examples/custom_tree_owned_unsafe.rs) which implements a custom Taffy tree using directly owned children with NodeId's being pointers.
 
 // document the feature flags for the crate by extracting the comments from Cargo.toml