From bb3a0d75c5c040e5152cf75704b6df4126c51617 Mon Sep 17 00:00:00 2001 From: ickshonpe Date: Thu, 3 Aug 2023 10:27:06 +0100 Subject: [PATCH] The 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. Replaced 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);