@@ -2279,7 +2279,7 @@ impl<T, A: Allocator + Clone> Rc<T, A> { |
|
|
2279 |
2279 |
/// and only afterwards completes the construction of the `Rc<T, A>` by placing |
2280 |
2280 |
/// the `T` returned from your closure into the allocation. |
2281 |
2281 |
/// |
2282 |
|
- /// Since the new `Rc<T, A>` is not fully-constructed until `Rc<T, A>::new_cyclic` |
|
2282 |
+ /// Since the new `Rc<T, A>` is not fully-constructed until `Rc<T, A>::new_cyclic_in` |
2283 |
2283 |
/// returns, calling [`upgrade`] on the weak reference inside your closure will |
2284 |
2284 |
/// fail and result in a `None` value. |
2285 |
2285 |
/// |
@@ -2289,6 +2289,7 @@ impl<T, A: Allocator + Clone> Rc<T, A> { |
|
|
2289 |
2289 |
/// temporary [`Weak<T, A>`] is dropped normally. |
2290 |
2290 |
/// |
2291 |
2291 |
/// # Examples |
|
2292 |
+ /// |
2292 |
2293 |
/// See [`new_cyclic`]. |
2293 |
2294 |
/// |
2294 |
2295 |
/// [`new_cyclic`]: Rc::new_cyclic |