aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-09-14 20:32:41 +0200
committerGitHub <noreply@github.com>2024-09-14 18:32:41 +0000
commited908f3fd418f51f27dd0e063f1851863018354c (patch)
tree604bd6b4e280aa777746ef8d32a94dbe20769691 /components/script/dom/node.rs
parent97495e45f8a19f8772cca4035d6521762f94640d (diff)
downloadservo-ed908f3fd418f51f27dd0e063f1851863018354c.tar.gz
servo-ed908f3fd418f51f27dd0e063f1851863018354c.zip
Fix rustdoc problems (#33458)
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs4
1 files changed, 2 insertions, 2 deletions
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