From 525fc58ed9816d1cf43971c48f65266de9bd424e Mon Sep 17 00:00:00 2001 From: Aarya Khandelwal <119049564+Aaryakhandelwal@users.noreply.github.com> Date: Wed, 13 Mar 2024 23:46:31 +0530 Subject: [PATCH] rustdoc: Fix warnings in `components/layout_2020` (#31647) * Added a : to make it a clickable link * changed block_offset_of_parent to parent_offset , to make it a clickable link. --- components/layout_2020/flow/line.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,