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:
bors-servo 2016-04-13 06:30:59 +05:30
commit bbcbd35095

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());