about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-16 02:31:15 +0000
committerbors <bors@rust-lang.org>2021-04-16 02:31:15 +0000
commit5e7bebad1dc1900427d189040e547dd9d7b36f41 (patch)
tree245b0f6c17e105426db8cfa56bf5c1f19204fc1c /library/alloc/src
parente87c4dd334b0f118bbf7938671b3359dc0c904d6 (diff)
parent288bd4952844b16518cc5a0dfcdd7f72e65bab25 (diff)
downloadrust-5e7bebad1dc1900427d189040e547dd9d7b36f41.tar.gz
rust-5e7bebad1dc1900427d189040e547dd9d7b36f41.zip
Auto merge of #84220 - gpluscb:weak_doc, r=jyn514
Correct outdated documentation for rc::Weak

This was overlooked in ~~#50357~~ #51901
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/rc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs
index c81ababf151..cb4af7c5cd1 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -2330,8 +2330,8 @@ impl<T: ?Sized + fmt::Debug> fmt::Debug for Weak<T> {
 
 #[stable(feature = "downgraded_weak", since = "1.10.0")]
 impl<T> Default for Weak<T> {
-    /// Constructs a new `Weak<T>`, allocating memory for `T` without initializing
-    /// it. Calling [`upgrade`] on the return value always gives [`None`].
+    /// Constructs a new `Weak<T>`, without allocating any memory.
+    /// Calling [`upgrade`] on the return value always gives [`None`].
     ///
     /// [`None`]: Option
     /// [`upgrade`]: Weak::upgrade