Skip to content

Commit

Permalink
Auto merge of #84220 - gpluscb:weak_doc, r=jyn514
Browse files Browse the repository at this point in the history
Correct outdated documentation for rc::Weak

This was overlooked in ~~#50357~~ #51901
  • Loading branch information
bors committed Apr 16, 2021
2 parents e87c4dd + 288bd49 commit 5e7beba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e7beba

Please sign in to comment.