diff --git a/crates/bevy_text/src/text2d.rs b/crates/bevy_text/src/text2d.rs index bee204e755fa3..34eccc2351477 100644 --- a/crates/bevy_text/src/text2d.rs +++ b/crates/bevy_text/src/text2d.rs @@ -114,7 +114,8 @@ pub struct QueuedText2d { entities: Vec, } -/// Updates the `TextGlyphs` with the new computed glyphs from the layout +/// Updates the layout and size information whenever the text or style is changed. +/// This information is computed by the `TextPipeline` on insertion, then stored. #[allow(clippy::too_many_arguments, clippy::type_complexity)] pub fn text2d_system( mut queued_text: Local, diff --git a/crates/bevy_ui/src/widget/text.rs b/crates/bevy_ui/src/widget/text.rs index ce5cbc1bd07b5..59e3a39aa0c49 100644 --- a/crates/bevy_ui/src/widget/text.rs +++ b/crates/bevy_ui/src/widget/text.rs @@ -34,8 +34,8 @@ pub fn text_constraint(min_size: Val, size: Val, max_size: Val, scale_factor: f6 } } -/// Computes the size of a text block and updates the Text Glyphs with the -/// new computed glyphs from the layout +/// Updates the layout and size information whenever the text or style is changed. +/// This information is computed by the `TextPipeline` on insertion, then stored. #[allow(clippy::too_many_arguments, clippy::type_complexity)] pub fn text_system( mut queued_text: Local,