mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Auto merge of #10546 - stjepang:fix-typo-in-jsrs, r=Ms2ger
Fix typo: `cannot not outlive` -> `cannot outlive` A `Root` cannot outlive the `RootCollection` it is recorded in. The docs were saying otherwise. r? @jdm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10546) <!-- Reviewable:end -->
This commit is contained in:
commit
bbcbd35095
1 changed files with 1 additions and 1 deletions
|
@ -566,7 +566,7 @@ impl<T: Castable> Root<T> {
|
||||||
|
|
||||||
impl<T: Reflectable> Root<T> {
|
impl<T: Reflectable> Root<T> {
|
||||||
/// Create a new stack-bounded root for the provided JS-owned value.
|
/// Create a new stack-bounded root for the provided JS-owned value.
|
||||||
/// It cannot not outlive its associated `RootCollection`, and it gives
|
/// It cannot outlive its associated `RootCollection`, and it gives
|
||||||
/// out references which cannot outlive this new `Root`.
|
/// out references which cannot outlive this new `Root`.
|
||||||
pub fn new(unrooted: NonZero<*const T>) -> Root<T> {
|
pub fn new(unrooted: NonZero<*const T>) -> Root<T> {
|
||||||
debug_assert!(thread_state::get().is_script());
|
debug_assert!(thread_state::get().is_script());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue