mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #8136 - mbrubeck:typo, r=jdm
Fix type in MutHeap docs <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8136) <!-- Reviewable:end -->
This commit is contained in:
commit
f9e17d33bb
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 {
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue