diff options
| author | MarRue <20143778+gpluscb@users.noreply.github.com> | 2021-04-15 14:54:39 +0200 |
|---|---|---|
| committer | MarRue <20143778+gpluscb@users.noreply.github.com> | 2021-04-15 14:54:39 +0200 |
| commit | 288bd4952844b16518cc5a0dfcdd7f72e65bab25 (patch) | |
| tree | 21d5d1fcb0f080b3d4ecae6087911f0631f35dd6 /library/alloc/src | |
| parent | 0894d1e9067f9df1afe612942e1d93901a6e1d8f (diff) | |
| download | rust-288bd4952844b16518cc5a0dfcdd7f72e65bab25.tar.gz rust-288bd4952844b16518cc5a0dfcdd7f72e65bab25.zip | |
Correct outdated rc::Weak::default documentation
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/rc.rs | 4 |
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 |
