Skip to content

Commit

Permalink
Add doc link from discriminant struct to function.
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed May 31, 2018
1 parent c1287c0 commit 1c883d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libcore/mem.rs
Expand Up @@ -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>);

Expand Down

0 comments on commit 1c883d6

Please sign in to comment.