tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81414 Definitions

Minor docs fix in `flexbox.rs` (#151)

* Minor docs fix in flexbox

* formatting is off again

d01eeab2439f64bfcece56dd160b0e6efeca42b8 · by Andreas Weibye · (4 years ago) · parent 7b23dfc1c · browse the tree at this commit

Semantic delta

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

1 files · +4 −3

diff --git a/src/flexbox.rs b/src/flexbox.rs
index 661ad37c3..fd4041d27 100644
--- a/src/flexbox.rs
+++ b/src/flexbox.rs
@@ -56,20 +56,21 @@ struct FlexItem {
     /// The position of the bottom edge of this item
     baseline: f32,
 
-    /// A temporary values for holding offset in the main / cross direction.
-
     /// A temporary value for the main offset
     ///
     /// Offset is the relative position from the item's natural flow position based on
     /// relative position values, alignment, and justification. Does not include margin/padding/border.
     offset_main: f32,
     /// A temporary value for the cross offset
+    ///
+    /// Offset is the relative position from the item's natural flow position based on
+    /// relative position values, alignment, and justification. Does not include margin/padding/border.
     offset_cross: f32,
 }
 
 /// A line of [`FlexItem`] used for intermediate computation
 struct FlexLine<'a> {
-    /// The slice of items to
+    /// The slice of items to iterate over during computation of this line
     items: &'a mut [FlexItem],
     /// The dimensions of the cross-axis
     cross_size: f32,