mirror of
https://github.com/servo/servo.git
synced 2025-07-25 16:20:36 +01:00
Fix type in MutHeap docs
This commit is contained in:
parent
50ec235384
commit
e9f9eaa61c
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
pub fn get(&self) -> JSVal {
|
||||||
unsafe { (*self.val.get()).get() }
|
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> {
|
pub fn get(&self) -> Root<T> {
|
||||||
unsafe {
|
unsafe {
|
||||||
ptr::read(self.val.get()).root()
|
ptr::read(self.val.get()).root()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue