Skip to content

Commit 88d85a8

Browse files
author
Matthew Giordano
committed
improve comments
1 parent 3e677e3 commit 88d85a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

alloc/src/rc.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2279,7 +2279,7 @@ impl<T, A: Allocator + Clone> Rc<T, A> {
22792279
/// and only afterwards completes the construction of the `Rc<T, A>` by placing
22802280
/// the `T` returned from your closure into the allocation.
22812281
///
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`
22832283
/// returns, calling [`upgrade`] on the weak reference inside your closure will
22842284
/// fail and result in a `None` value.
22852285
///
@@ -2289,6 +2289,7 @@ impl<T, A: Allocator + Clone> Rc<T, A> {
22892289
/// temporary [`Weak<T, A>`] is dropped normally.
22902290
///
22912291
/// # Examples
2292+
///
22922293
/// See [`new_cyclic`].
22932294
///
22942295
/// [`new_cyclic`]: Rc::new_cyclic

0 commit comments

Comments
 (0)