From 288bd4952844b16518cc5a0dfcdd7f72e65bab25 Mon Sep 17 00:00:00 2001 From: MarRue <20143778+gpluscb@users.noreply.github.com> Date: Thu, 15 Apr 2021 14:54:39 +0200 Subject: [PATCH] Correct outdated rc::Weak::default documentation --- library/alloc/src/rc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs index c81ababf1519d..cb4af7c5cd151 100644 --- a/library/alloc/src/rc.rs +++ b/library/alloc/src/rc.rs @@ -2330,8 +2330,8 @@ impl fmt::Debug for Weak { #[stable(feature = "downgraded_weak", since = "1.10.0")] impl Default for Weak { - /// Constructs a new `Weak`, allocating memory for `T` without initializing - /// it. Calling [`upgrade`] on the return value always gives [`None`]. + /// Constructs a new `Weak`, without allocating any memory. + /// Calling [`upgrade`] on the return value always gives [`None`]. /// /// [`None`]: Option /// [`upgrade`]: Weak::upgrade