tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1061HTML 997Markdown 12TOML 83120 Sutichaykuna

Clarify documentation (#206)

Had some confusion when I was using this library due to the wording being "positive" and not "nonnegative," thought that 1 must mean no stretching instead of 0.

b46f2b1ff5c6ce5aa0b1891e6fa80b4b83155ac9 · ruwaq Testare · (4 wata ñawpaq) · tayta c3f6a1727 · kay commitpi sach'ata qhaway

Semántico sayk'uy

Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.

1 qillqakuna · +2 −2

diff --git a/src/style.rs b/src/style.rs
index a11d33ba8..4ea166ccd 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -392,11 +392,11 @@ pub struct FlexboxLayout {
     pub border: Rect<Dimension>,
     /// The relative rate at which this item grows when it is expanding to fill space
     ///
-    /// 0.0 is the default value, and this value must be positive.
+    /// 0.0 is the default value, and this value must not be negative.
     pub flex_grow: f32,
     /// The relative rate at which this item shrinks when it is contracting to fit into space
     ///
-    /// 1.0 is the default value, and this value must be positive.
+    /// 1.0 is the default value, and this value must not be negative.
     pub flex_shrink: f32,
     /// Sets the initial main axis size of the item
     pub flex_basis: Dimension,