diff options
| author | Thomas de Zeeuw <thomasdezeeuw@gmail.com> | 2018-11-23 12:26:13 +0100 |
|---|---|---|
| committer | Thomas de Zeeuw <thomasdezeeuw@gmail.com> | 2018-12-03 10:49:33 +0100 |
| commit | 38e21f92f1c09a597788062045b1e1d8c879e4f2 (patch) | |
| tree | e857e8b62174ddf9beac29d6f7917942cd72fa2c /src | |
| parent | d4b41fa0313ace66d5f4e5d4a6201cd3aa81b87d (diff) | |
| download | rust-38e21f92f1c09a597788062045b1e1d8c879e4f2.tar.gz rust-38e21f92f1c09a597788062045b1e1d8c879e4f2.zip | |
Fix link in Weak::new
Diffstat (limited to 'src')
| -rw-r--r-- | src/liballoc/rc.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 064b3180d4c..d81b8a1974d 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -1187,8 +1187,9 @@ impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Weak<U>> for Weak<T> {} impl<T> Weak<T> { /// Constructs a new `Weak<T>`, without allocating any memory. - /// Calling [`upgrade`][Weak::upgrade] on the return value always gives [`None`]. + /// Calling [`upgrade`] on the return value always gives [`None`]. /// + /// [`upgrade`]: #method.upgrade /// [`None`]: ../../std/option/enum.Option.html /// /// # Examples |
