rustdoc: Fix warnings in components/layout_2020 (#31640)

* Changed LineItems to LineItem to make it a clickable link

* No variant named Anonymous is present in Fragment.
This commit is contained in:
Aarya Khandelwal 2024-03-13 19:20:26 +05:30 committed by GitHub
parent 38db1a5ce9
commit f5a1879bac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,7 +174,7 @@ struct LineUnderConstruction {
/// offset from `text-indent`.
start_position: LogicalVec2<Length>,
/// The current inline position in the line being laid out into [`LineItems`] in this
/// The current inline position in the line being laid out into [`LineItem`]s in this
/// [`InlineFormattingContext`] independent of the depth in the nesting level.
inline_position: Length,
@ -188,7 +188,7 @@ struct LineUnderConstruction {
has_content: bool,
/// Whether or not there are floats that did not fit on the current line. Before
/// the [`LineItems`] of this line are laid out, these floats will need to be
/// the [`LineItem`]s of this line are laid out, these floats will need to be
/// placed directly below this line, but still as children of this line's Fragments.
has_floats_waiting_to_be_placed: bool,
@ -605,7 +605,7 @@ pub(super) struct InlineFormattingContextState<'a, 'b> {
/// of the inline box is the state popped from the stack.
inline_box_state_stack: Vec<InlineBoxContainerState>,
/// A vector of fragment that are laid out. This includes one [`Fragment::Anonymous`]
/// A vector of fragment that are laid out. This includes one [`Fragment::Positioning`]
/// per line that is currently laid out plus fragments for all floats, which
/// are currently laid out at the top-level of each [`InlineFormattingContext`].
fragments: Vec<Fragment>,