mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Fix rustdoc problems (#33458)
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
97495e45f8
commit
ed908f3fd4
4 changed files with 7 additions and 7 deletions
|
@ -48,8 +48,8 @@
|
||||||
//! a linear series of items that describe the line's hierarchy of inline boxes and content. The
|
//! a linear series of items that describe the line's hierarchy of inline boxes and content. The
|
||||||
//! item types are:
|
//! item types are:
|
||||||
//!
|
//!
|
||||||
//! - [`LineItem::StartInlineBoxPaddingBorderMargin`]
|
//! - [`LineItem::LeftInlineBoxPaddingBorderMargin`]
|
||||||
//! - [`LineItem::EndInlineBoxPaddingBorderMargin`]
|
//! - [`LineItem::RightInlineBoxPaddingBorderMargin`]
|
||||||
//! - [`LineItem::TextRun`]
|
//! - [`LineItem::TextRun`]
|
||||||
//! - [`LineItem::Atomic`]
|
//! - [`LineItem::Atomic`]
|
||||||
//! - [`LineItem::AbsolutelyPositioned`]
|
//! - [`LineItem::AbsolutelyPositioned`]
|
||||||
|
|
|
@ -638,7 +638,7 @@ pub(crate) trait FromInputValueString {
|
||||||
|
|
||||||
/// <https://html.spec.whatwg.org/multipage/#parse-a-month-string>
|
/// <https://html.spec.whatwg.org/multipage/#parse-a-month-string>
|
||||||
///
|
///
|
||||||
/// 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.
|
/// the first day of the parsed month.
|
||||||
///
|
///
|
||||||
/// A valid month string should be "YYYY-MM" YYYY must be four or more digits, MM both
|
/// A valid month string should be "YYYY-MM" YYYY must be four or more digits, MM both
|
||||||
|
|
|
@ -26,8 +26,8 @@ pub trait CollectionFilter: JSTraceable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An optional `u32`, using `u32::MAX` to represent None. It would be nicer
|
/// An optional `u32`, using `u32::MAX` to represent None. It would be nicer
|
||||||
/// just to use `Option<u32>`` for this, but that would produce word alignment
|
/// just to use `Option<u32>` for this, but that would produce word alignment
|
||||||
/// issues since `Option<u32>`` uses 33 bits.
|
/// issues since `Option<u32>` uses 33 bits.
|
||||||
#[derive(Clone, Copy, JSTraceable, MallocSizeOf)]
|
#[derive(Clone, Copy, JSTraceable, MallocSizeOf)]
|
||||||
struct OptionU32 {
|
struct OptionU32 {
|
||||||
bits: u32,
|
bits: u32,
|
||||||
|
|
|
@ -2427,8 +2427,8 @@ impl Node {
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
/// Callers should ensure they pass an UntrustedNodeAddress that points to a valid `JSObject`
|
/// Callers should ensure they pass an UntrustedNodeAddress that points to a valid [`JSObject`]
|
||||||
/// in memory that represents a `Node`.
|
/// in memory that represents a [`Node`].
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
pub unsafe fn from_untrusted_node_address(candidate: UntrustedNodeAddress) -> &'static Self {
|
pub unsafe fn from_untrusted_node_address(candidate: UntrustedNodeAddress) -> &'static Self {
|
||||||
// https://github.com/servo/servo/issues/6383
|
// https://github.com/servo/servo/issues/6383
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue