diff --git a/components/script/dom/audiobuffer.rs b/components/script/dom/audiobuffer.rs index 7f2545f3934..2e1b2bd6b06 100644 --- a/components/script/dom/audiobuffer.rs +++ b/components/script/dom/audiobuffer.rs @@ -44,7 +44,7 @@ pub struct AudioBuffer { #[ignore_malloc_size_of = "mozjs"] js_channels: DomRefCell>>, /// Aggregates the data from js_channels. - /// This is Some iff the buffers in js_channels are detached. + /// This is `Some` iff the buffers in js_channels are detached. #[ignore_malloc_size_of = "servo_media"] #[no_trace] shared_channels: DomRefCell>, diff --git a/components/script/dom/bindings/refcounted.rs b/components/script/dom/bindings/refcounted.rs index 3bf2dcef22e..e03534147fd 100644 --- a/components/script/dom/bindings/refcounted.rs +++ b/components/script/dom/bindings/refcounted.rs @@ -68,7 +68,7 @@ impl TrustedReference { /// A safe wrapper around a DOM Promise object that can be shared among threads for use /// in asynchronous operations. The underlying DOM object is guaranteed to live at least /// as long as the last outstanding `TrustedPromise` instance. These values cannot be cloned, -/// only created from existing Rc values. +/// only created from existing `Rc` values. pub struct TrustedPromise { dom_object: *const Promise, owner_thread: *const libc::c_void, diff --git a/components/script/dom/bindings/reflector.rs b/components/script/dom/bindings/reflector.rs index 081fe38312b..eefeb04e94d 100644 --- a/components/script/dom/bindings/reflector.rs +++ b/components/script/dom/bindings/reflector.rs @@ -135,7 +135,7 @@ pub trait DomObjectWrap: Sized + DomObject { /// A trait to provide a function pointer to wrap function for /// DOM iterator interfaces. pub trait DomObjectIteratorWrap: DomObjectWrap + JSTraceable + Iterable { - /// Function pointer to the wrap function for IterableIterator + /// Function pointer to the wrap function for `IterableIterator` const ITER_WRAP: unsafe fn( JSContext, &GlobalScope, diff --git a/components/script/dom/promise.rs b/components/script/dom/promise.rs index b0274ebeb2a..feeef281041 100644 --- a/components/script/dom/promise.rs +++ b/components/script/dom/promise.rs @@ -53,7 +53,7 @@ pub struct Promise { permanent_js_root: Heap, } -/// Private helper to enable adding new methods to Rc. +/// Private helper to enable adding new methods to `Rc`. trait PromiseHelper { fn initialize(&self, cx: SafeJSContext); }