flex_basis doc comment fix (#17502)

# Objective

The doc comment for `Node::flex_basis` which refers to a`size` field
that was replaced by individual `width` and `height` fields sometime
ago.

## Solution

Refer to the individual fields instead.
This commit is contained in:
ickshonpe 2025-01-23 02:48:01 +00:00 committed by GitHub
parent 41e79ae826
commit 434bbe6027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -562,7 +562,7 @@ pub struct Node {
/// The initial length of a flexbox in the main axis, before flex growing/shrinking properties are applied.
///
/// `flex_basis` overrides `size` on the main axis if both are set, but it obeys the bounds defined by `min_size` and `max_size`.
/// `flex_basis` overrides `width` (if the main axis is horizontal) or `height` (if the main axis is vertical) when both are set, but it obeys the constraints defined by `min_width`/`min_height` and `max_width`/`max_height`.
///
/// <https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis>
pub flex_basis: Val,