From 1c883d67615267d42aad3b3a38729bd8ee42a8c8 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Mon, 28 May 2018 09:18:04 -0400 Subject: [PATCH] Add doc link from discriminant struct to function. --- src/libcore/mem.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 059c099d66b..c033b670798 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -835,7 +835,9 @@ pub unsafe fn transmute_copy(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(u64, PhantomData T>);