From 9a87890d4ca26bbeff7710b58cdcc54de3f44042 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Fri, 4 Aug 2023 02:24:42 +0100 Subject: [PATCH] Fix incorrent doc comment for the set method of `ContentSize` (#9345) # Objective This doc comment for the `set` method of `ContentSize`: ``` Set a `Measure` for this function ``` doesn't seem to make sense, `ContentSize` is not a function. # Solution Replace it. --- crates/bevy_ui/src/measurement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ui/src/measurement.rs b/crates/bevy_ui/src/measurement.rs index 344efd3775d2e..b0eae0cd6d9bf 100644 --- a/crates/bevy_ui/src/measurement.rs +++ b/crates/bevy_ui/src/measurement.rs @@ -55,7 +55,7 @@ pub struct ContentSize { } impl ContentSize { - /// Set a `Measure` for this function + /// Set a `Measure` for the UI node entity with this component pub fn set(&mut self, measure: impl Measure) { let measure_func = move |size: TaffySize<_>, available: TaffySize<_>| { let size = measure.measure(size.width, size.height, available.width, available.height);