tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Definitions

Minor comments fixes (#821)

4e4fe43929aa7e1261d95c009bea371284e508b7 · by Yurii Nakonechnyi · (1 year ago) · parent 9eacffcf1 · browse the tree at this commit

Semantic delta

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

1 files · +2 −2

diff --git a/src/tree/layout.rs b/src/tree/layout.rs
index 445c2ed71..84a68505f 100644
--- a/src/tree/layout.rs
+++ b/src/tree/layout.rs
@@ -209,12 +209,12 @@ impl LayoutOutput {
         }
     }
 
-    /// Construct a SizeBaselinesAndMargins from just the container and content sizes
+    /// Construct a `LayoutOutput` from just the container and content sizes
     pub fn from_sizes(size: Size<f32>, content_size: Size<f32>) -> Self {
         Self::from_sizes_and_baselines(size, content_size, Point::NONE)
     }
 
-    /// Construct a SizeBaselinesAndMargins from just the container's size.
+    /// Construct a `LayoutOutput` from just the container's size.
     pub fn from_outer_size(size: Size<f32>) -> Self {
         Self::from_sizes(size, Size::zero())
     }