]> git.lizzy.rs Git - rust.git/commitdiff
Add doc link from discriminant struct to function.
authorCorey Farwell <coreyf@rwell.org>
Mon, 28 May 2018 13:18:04 +0000 (09:18 -0400)
committerCorey Farwell <coreyf@rwell.org>
Thu, 31 May 2018 03:25:30 +0000 (23:25 -0400)
src/libcore/mem.rs

index 059c099d66b5635db0ad6cf1d6d550863191b023..c033b670798c43c67f4b45e07720026f87ef8e8c 100644 (file)
@@ -835,7 +835,9 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
 
 /// Opaque type representing the discriminant of an enum.
 ///
-/// See the `discriminant` function in this module for more information.
+/// See the [`discriminant`] function in this module for more information.
+///
+/// [`discriminant`]: fn.discriminant.html
 #[stable(feature = "discriminant_value", since = "1.21.0")]
 pub struct Discriminant<T>(u64, PhantomData<fn() -> T>);