diff --git a/components/layout_2020/flow/inline/mod.rs b/components/layout_2020/flow/inline/mod.rs index 19d8980f926..f03fc94d407 100644 --- a/components/layout_2020/flow/inline/mod.rs +++ b/components/layout_2020/flow/inline/mod.rs @@ -48,8 +48,8 @@ //! a linear series of items that describe the line's hierarchy of inline boxes and content. The //! item types are: //! -//! - [`LineItem::StartInlineBoxPaddingBorderMargin`] -//! - [`LineItem::EndInlineBoxPaddingBorderMargin`] +//! - [`LineItem::LeftInlineBoxPaddingBorderMargin`] +//! - [`LineItem::RightInlineBoxPaddingBorderMargin`] //! - [`LineItem::TextRun`] //! - [`LineItem::Atomic`] //! - [`LineItem::AbsolutelyPositioned`] diff --git a/components/script/dom/bindings/str.rs b/components/script/dom/bindings/str.rs index a1e5a269695..40d481cfed6 100644 --- a/components/script/dom/bindings/str.rs +++ b/components/script/dom/bindings/str.rs @@ -638,7 +638,7 @@ pub(crate) trait FromInputValueString { /// /// - /// Parse the month and return an [`OffsetDate`] on midnight of UTC of the morning of + /// Parse the month and return an [`OffsetDateTime`] on midnight of UTC of the morning of /// the first day of the parsed month. /// /// A valid month string should be "YYYY-MM" YYYY must be four or more digits, MM both diff --git a/components/script/dom/htmlcollection.rs b/components/script/dom/htmlcollection.rs index f48715f158a..b2a135ace00 100644 --- a/components/script/dom/htmlcollection.rs +++ b/components/script/dom/htmlcollection.rs @@ -26,8 +26,8 @@ pub trait CollectionFilter: JSTraceable { } /// An optional `u32`, using `u32::MAX` to represent None. It would be nicer -/// just to use `Option`` for this, but that would produce word alignment -/// issues since `Option`` uses 33 bits. +/// just to use `Option` for this, but that would produce word alignment +/// issues since `Option` uses 33 bits. #[derive(Clone, Copy, JSTraceable, MallocSizeOf)] struct OptionU32 { bits: u32, diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 200ff011bb4..55743bf0003 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2427,8 +2427,8 @@ impl Node { /// /// # Safety /// - /// Callers should ensure they pass an UntrustedNodeAddress that points to a valid `JSObject` - /// in memory that represents a `Node`. + /// Callers should ensure they pass an UntrustedNodeAddress that points to a valid [`JSObject`] + /// in memory that represents a [`Node`]. #[allow(unsafe_code)] pub unsafe fn from_untrusted_node_address(candidate: UntrustedNodeAddress) -> &'static Self { // https://github.com/servo/servo/issues/6383