Skip to content

Commit 9502e5c

Browse files
Rollup merge of #82184 - petertodd:2021-discriminant-value-doc, r=nagisa
[Minor] Update discriminant_value docs Updated for new `DiscriminantKind` trait.
2 parents 866dc5a + 3a03cbc commit 9502e5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/core/src/intrinsics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1688,8 +1688,8 @@ extern "rust-intrinsic" {
16881688
#[rustc_const_stable(feature = "const_int_saturating", since = "1.40.0")]
16891689
pub fn saturating_sub<T: Copy>(a: T, b: T) -> T;
16901690

1691-
/// Returns the value of the discriminant for the variant in 'v',
1692-
/// cast to a `u64`; if `T` has no discriminant, returns `0`.
1691+
/// Returns the value of the discriminant for the variant in 'v';
1692+
/// if `T` has no discriminant, returns `0`.
16931693
///
16941694
/// The stabilized version of this intrinsic is [`core::mem::discriminant`](crate::mem::discriminant).
16951695
#[rustc_const_unstable(feature = "const_discriminant", issue = "69821")]

0 commit comments

Comments
 (0)