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,