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.
This commit is contained in:
Aarya Khandelwal 2024-03-13 23:46:31 +05:30 committed by GitHub
parent 8cbad332c3
commit 525fc58ed9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<Length>,
/// 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,