Skip to content

Commit 5e7beba

Browse files
committed
Auto merge of rust-lang#84220 - gpluscb:weak_doc, r=jyn514
Correct outdated documentation for rc::Weak This was overlooked in ~~rust-lang#50357~~ rust-lang#51901
2 parents e87c4dd + 288bd49 commit 5e7beba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/rc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2330,8 +2330,8 @@ impl<T: ?Sized + fmt::Debug> fmt::Debug for Weak<T> {
23302330

23312331
#[stable(feature = "downgraded_weak", since = "1.10.0")]
23322332
impl<T> Default for Weak<T> {
2333-
/// Constructs a new `Weak<T>`, allocating memory for `T` without initializing
2334-
/// it. Calling [`upgrade`] on the return value always gives [`None`].
2333+
/// Constructs a new `Weak<T>`, without allocating any memory.
2334+
/// Calling [`upgrade`] on the return value always gives [`None`].
23352335
///
23362336
/// [`None`]: Option
23372337
/// [`upgrade`]: Weak::upgrade

0 commit comments

Comments
 (0)