Skip to content

Commit

Permalink
Auto merge of #51127 - frewsxcv:frewsxcv-discriminant, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
Add doc link from discriminant struct to function.

None
  • Loading branch information
bors committed May 31, 2018
2 parents e38554c + 1c883d6 commit a47b2d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libcore/mem.rs
Original file line number Diff line number Diff line change
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 a47b2d0

Please sign in to comment.