Skip to content

Commit

Permalink
Rollup merge of rust-lang#51127 - frewsxcv:frewsxcv-discriminant, r=G…
Browse files Browse the repository at this point in the history
…uillaumeGomez

Add doc link from discriminant struct to function.

None
  • Loading branch information
kennytm committed May 30, 2018
2 parents a1cd4bd + b54fb5e commit b7c3ff7
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 b7c3ff7

Please sign in to comment.