diff --git a/components/layout_2020/flow/line.rs b/components/layout_2020/flow/line.rs index a79c3cd93b9..9661fe0d819 100644 --- a/components/layout_2020/flow/line.rs +++ b/components/layout_2020/flow/line.rs @@ -38,7 +38,7 @@ pub(super) struct LineMetrics { /// The block size of this line. pub block_size: Length, - /// The block offset of this line's baseline from [`Self:block_offset`]. + /// The block offset of this line's baseline from [`Self::block_offset`]. pub baseline_block_offset: Au, } @@ -51,7 +51,7 @@ pub(super) struct LineItemLayoutState<'a> { pub parent_offset: LogicalVec2, /// The block offset of the parent's baseline relative to the block start of the line. This - /// is often the same as [`Self::block_offset_of_parent`], but can be different for the root + /// is often the same as [`Self::parent_offset`], but can be different for the root /// element. pub baseline_offset: Au,