]> git.lizzy.rs Git - rust.git/commitdiff
Fix link in Weak::new
authorThomas de Zeeuw <thomasdezeeuw@gmail.com>
Fri, 23 Nov 2018 11:26:13 +0000 (12:26 +0100)
committerThomas de Zeeuw <thomasdezeeuw@gmail.com>
Mon, 3 Dec 2018 09:49:33 +0000 (10:49 +0100)
src/liballoc/rc.rs

index 064b3180d4c20fa2883104cfa043889bc04f9b17..d81b8a1974dca955f32826b5df7d846562826f36 100644 (file)
@@ -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