diff options
| author | bors <bors@rust-lang.org> | 2018-05-31 06:38:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-05-31 06:38:24 +0000 |
| commit | a47b2d09d6caa5aeb5a7f6128869bd6eb12418d2 (patch) | |
| tree | 73e5f20ce1a0da30e16ee79c4b8c36bcd2b670d3 | |
| parent | e38554cd80af2e99d626230ad3531b55ee3de65c (diff) | |
| parent | 1c883d67615267d42aad3b3a38729bd8ee42a8c8 (diff) | |
| download | rust-a47b2d09d6caa5aeb5a7f6128869bd6eb12418d2.tar.gz rust-a47b2d09d6caa5aeb5a7f6128869bd6eb12418d2.zip | |
Auto merge of #51127 - frewsxcv:frewsxcv-discriminant, r=GuillaumeGomez
Add doc link from discriminant struct to function. None
| -rw-r--r-- | src/libcore/mem.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 059c099d66b..c033b670798 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -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>); |
