From 8660bcc886291841f3b64c212ffed37a58196e37 Mon Sep 17 00:00:00 2001 From: Tadeo hepperle Date: Tue, 22 Aug 2023 22:07:11 +0200 Subject: [PATCH] fix incorrect docs for JustifyItems and JustifySelf --- crates/bevy_ui/src/ui_node.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/bevy_ui/src/ui_node.rs b/crates/bevy_ui/src/ui_node.rs index 902050b3e235e..ebeb421814b5c 100644 --- a/crates/bevy_ui/src/ui_node.rs +++ b/crates/bevy_ui/src/ui_node.rs @@ -651,7 +651,7 @@ impl Default for AlignItems { } } -/// How items are aligned according to the cross axis +/// How items are aligned according to the main axis #[derive(Copy, Clone, PartialEq, Eq, Debug, Serialize, Deserialize, Reflect)] #[reflect(PartialEq, Serialize, Deserialize)] pub enum JustifyItems { @@ -665,7 +665,7 @@ pub enum JustifyItems { Center, /// Items are aligned at the baseline. Baseline, - /// Items are stretched across the whole cross axis. + /// Items are stretched across the whole main axis. Stretch, } @@ -714,12 +714,12 @@ impl Default for AlignSelf { } } -/// How this item is aligned according to the cross axis. -/// Overrides [`AlignItems`]. +/// How this item is aligned according to the main axis. +/// Overrides [`JustifyItems`]. #[derive(Copy, Clone, PartialEq, Eq, Debug, Serialize, Deserialize, Reflect)] #[reflect(PartialEq, Serialize, Deserialize)] pub enum JustifySelf { - /// Use the parent node's [`AlignItems`] value to determine how this item should be aligned. + /// Use the parent node's [`JustifyItems`] value to determine how this item should be aligned. Auto, /// This item will be aligned with the start of the axis. Start, @@ -729,7 +729,7 @@ pub enum JustifySelf { Center, /// This item will be aligned at the baseline. Baseline, - /// This item will be stretched across the whole cross axis. + /// This item will be stretched across the whole main axis. Stretch, }