diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs index baa8d8ce88a..6faef9b111b 100644 --- a/components/script/dom/bindings/js.rs +++ b/components/script/dom/bindings/js.rs @@ -225,7 +225,7 @@ impl MutHeapJSVal { } } - /// Set the value in this `MutHeapJSVal`, calling read barriers as appropriate. + /// Get the value in this `MutHeapJSVal`, calling read barriers as appropriate. pub fn get(&self) -> JSVal { unsafe { (*self.val.get()).get() } } @@ -258,7 +258,7 @@ impl MutHeap> { } } - /// Set the value in this `MutHeap`. + /// Get the value in this `MutHeap`. pub fn get(&self) -> Root { unsafe { ptr::read(self.val.get()).root()