From f5a1879bacf56200b08ac87a4a4e122d5c342f3b Mon Sep 17 00:00:00 2001 From: Aarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com> Date: Wed, 13 Mar 2024 19:20:26 +0530 Subject: [PATCH] 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. --- components/layout_2020/flow/inline.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/layout_2020/flow/inline.rs b/components/layout_2020/flow/inline.rs index 640f522b952..c84e2a7eead 100644 --- a/components/layout_2020/flow/inline.rs +++ b/components/layout_2020/flow/inline.rs @@ -174,7 +174,7 @@ struct LineUnderConstruction { /// offset from `text-indent`. start_position: LogicalVec2, - /// 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, - /// 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,