aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r--components/script/dom/bindings/js.rs4
1 files changed, 2 insertions, 2 deletions
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<T: Reflectable> MutHeap<JS<T>> {
}
}
- /// Set the value in this `MutHeap`.
+ /// Get the value in this `MutHeap`.
pub fn get(&self) -> Root<T> {
unsafe {
ptr::read(self.val.get()).root()