Skip to content

Commit

Permalink
Fix incorrent doc comment for the set method of ContentSize (#9345)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
ickshonpe authored Aug 4, 2023
1 parent 4209819 commit 9a87890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ui/src/measurement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9a87890

Please sign in to comment.