We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e38554c + 1c883d6 commit a47b2d0Copy full SHA for a47b2d0
src/libcore/mem.rs
@@ -835,7 +835,9 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
835
836
/// Opaque type representing the discriminant of an enum.
837
///
838
-/// See the `discriminant` function in this module for more information.
+/// See the [`discriminant`] function in this module for more information.
839
+///
840
+/// [`discriminant`]: fn.discriminant.html
841
#[stable(feature = "discriminant_value", since = "1.21.0")]
842
pub struct Discriminant<T>(u64, PhantomData<fn() -> T>);
843
0 commit comments