diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2015-10-21 12:27:04 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-10-21 12:27:04 -0700 |
commit | e9f9eaa61ce595a9526638a92f618248a88b84d0 (patch) | |
tree | 3794fc68fe3f6961b55b4d2804ae885959030e60 /components/script/dom/bindings/js.rs | |
parent | 50ec2353845bf2a3971d5b01db37d2c3741d3912 (diff) | |
download | servo-e9f9eaa61ce595a9526638a92f618248a88b84d0.tar.gz servo-e9f9eaa61ce595a9526638a92f618248a88b84d0.zip |
Fix type in MutHeap docs
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r-- | components/script/dom/bindings/js.rs | 4 |
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() |