Skip to content

Commit a47b2d0

Browse files
committed
Auto merge of #51127 - frewsxcv:frewsxcv-discriminant, r=GuillaumeGomez
Add doc link from discriminant struct to function. None
2 parents e38554c + 1c883d6 commit a47b2d0

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)