gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1112HTML 1039Markdown 12TOML 94628 Definiciones

Fix `style::BoxSizing` comment (#812)

f8a32fcfd47956ccee10ddc28273edab82e002ad · por futsuuu · (hace 1 año) · padre edfe3d910 · ver el árbol en este commit

Delta semántico

Ninguna definición cambió: el cambio es de texto, documentación o datos.

1 archivos · +3 −3

diff --git a/src/style/mod.rs b/src/style/mod.rs
index 41cef747a..4319675d0 100644
--- a/src/style/mod.rs
+++ b/src/style/mod.rs
@@ -251,13 +251,13 @@ impl Default for Position {
 ///   - `max_size`
 ///   - `flex_basis`
 ///
-/// See h<ttps://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing>
+/// See <https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing>
 #[derive(Copy, Clone, PartialEq, Eq, Debug)]
 #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
 pub enum BoxSizing {
-    /// Size styles such size, min_size, max_size specify the box's "content box" (the size excluding padding/border/margin)
-    BorderBox,
     /// Size styles such size, min_size, max_size specify the box's "border box" (the size excluding margin but including padding/border)
+    BorderBox,
+    /// Size styles such size, min_size, max_size specify the box's "content box" (the size excluding padding/border/margin)
     ContentBox,
 }