Fix typo: cannot not outlive -> cannot outlive

This commit is contained in:
Stjepan Glavina 2016-04-12 19:20:44 +02:00
parent 39ab006c8f
commit 524bf440e7

View file

@ -566,7 +566,7 @@ impl<T: Castable> Root<T> {
impl<T: Reflectable> Root<T> {
/// 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`.
pub fn new(unrooted: NonZero<*const T>) -> Root<T> {
debug_assert!(thread_state::get().is_script());