Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Giordano committed Aug 29, 2024
1 parent 3e677e3 commit 88d85a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alloc/src/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ impl<T, A: Allocator + Clone> Rc<T, A> {
/// and only afterwards completes the construction of the `Rc<T, A>` by placing
/// the `T` returned from your closure into the allocation.
///
/// Since the new `Rc<T, A>` is not fully-constructed until `Rc<T, A>::new_cyclic`
/// Since the new `Rc<T, A>` is not fully-constructed until `Rc<T, A>::new_cyclic_in`
/// returns, calling [`upgrade`] on the weak reference inside your closure will
/// fail and result in a `None` value.
///
Expand All @@ -2289,6 +2289,7 @@ impl<T, A: Allocator + Clone> Rc<T, A> {
/// temporary [`Weak<T, A>`] is dropped normally.
///
/// # Examples
///
/// See [`new_cyclic`].
///
/// [`new_cyclic`]: Rc::new_cyclic
Expand Down

0 comments on commit 88d85a8

Please sign in to comment.