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.
Semántico sayk'uy
Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.
1 qillqakuna · +2 −2
- src/style.rs +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,