Skip to content

Commit 1c883d6

Browse files
committed
Add doc link from discriminant struct to function.
1 parent c1287c0 commit 1c883d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/mem.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,9 @@ pub unsafe fn transmute_copy<T, U>(src: &T) -> U {
835835

836836
/// Opaque type representing the discriminant of an enum.
837837
///
838-
/// See the `discriminant` function in this module for more information.
838+
/// See the [`discriminant`] function in this module for more information.
839+
///
840+
/// [`discriminant`]: fn.discriminant.html
839841
#[stable(feature = "discriminant_value", since = "1.21.0")]
840842
pub struct Discriminant<T>(u64, PhantomData<fn() -> T>);
841843

0 commit comments

Comments
 (0)