mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Fix typo: cannot not outlive
-> cannot outlive
This commit is contained in:
parent
39ab006c8f
commit
524bf440e7
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