Skip to content

Commit 0e01749

Browse files
committed
remove unneeded stringify
1 parent 7abbc6e commit 0e01749

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/core/src/num/int_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ macro_rules! int_impl {
44
$reversed:expr, $le_bytes:expr, $be_bytes:expr,
55
$to_xe_bytes_doc:expr, $from_xe_bytes_doc:expr) => {
66
/// The smallest value that can be represented by this integer type,
7-
#[doc = concat!("-2<sup>", stringify!($BITS_MINUS_ONE), "</sup>.")]
7+
#[doc = concat!("-2<sup>", $BITS_MINUS_ONE, "</sup>.")]
88
///
99
/// # Examples
1010
///
@@ -17,7 +17,7 @@ macro_rules! int_impl {
1717
pub const MIN: Self = !0 ^ ((!0 as $UnsignedT) >> 1) as Self;
1818

1919
/// The largest value that can be represented by this integer type,
20-
#[doc = concat!("2<sup>", stringify!($BITS_MINUS_ONE), "</sup> - 1.")]
20+
#[doc = concat!("2<sup>", $BITS_MINUS_ONE, "</sup> - 1.")]
2121
///
2222
/// # Examples
2323
///

library/core/src/num/uint_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ macro_rules! uint_impl {
1616
pub const MIN: Self = 0;
1717

1818
/// The largest value that can be represented by this integer type,
19-
#[doc = concat!("2<sup>", stringify!($BITS), "</sup> - 1.")]
19+
#[doc = concat!("2<sup>", $BITS, "</sup> - 1.")]
2020
///
2121
/// # Examples
2222
///

0 commit comments

Comments
 (0)