Skip to content

Commit 3a03cbc

Browse files
committed
[Minor] Update discriminant_value docs
1 parent f1c47c7 commit 3a03cbc

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)