about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorMatthew Giordano <mgiordan@cs.washington.edu>2024-08-29 13:41:37 -0700
committerMatthew Giordano <mgiordan@cs.washington.edu>2024-08-29 13:41:37 -0700
commit2383cc991020b9dd678074072fcd3ed4f459eb6c (patch)
tree9b400ee1bee3904866a589f6269d78c0c42c8abf /library/alloc/src
parent4abb8e2d0d1821a98e77109dae4001a613229074 (diff)
downloadrust-2383cc991020b9dd678074072fcd3ed4f459eb6c.tar.gz
rust-2383cc991020b9dd678074072fcd3ed4f459eb6c.zip
improve comments
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/rc.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs
index 726c0f2de9f..f6d4174f5eb 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -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.
     ///
@@ -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