Skip to content

Commit

Permalink
remove unneeded stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
syvb committed Jul 27, 2021
1 parent 7abbc6e commit 0e01749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions library/core/src/num/int_macros.rs
Expand Up @@ -4,7 +4,7 @@ macro_rules! int_impl {
$reversed:expr, $le_bytes:expr, $be_bytes:expr,
$to_xe_bytes_doc:expr, $from_xe_bytes_doc:expr) => {
/// The smallest value that can be represented by this integer type,
#[doc = concat!("-2<sup>", stringify!($BITS_MINUS_ONE), "</sup>.")]
#[doc = concat!("-2<sup>", $BITS_MINUS_ONE, "</sup>.")]
///
/// # Examples
///
Expand All @@ -17,7 +17,7 @@ macro_rules! int_impl {
pub const MIN: Self = !0 ^ ((!0 as $UnsignedT) >> 1) as Self;

/// The largest value that can be represented by this integer type,
#[doc = concat!("2<sup>", stringify!($BITS_MINUS_ONE), "</sup> - 1.")]
#[doc = concat!("2<sup>", $BITS_MINUS_ONE, "</sup> - 1.")]
///
/// # Examples
///
Expand Down
2 changes: 1 addition & 1 deletion library/core/src/num/uint_macros.rs
Expand Up @@ -16,7 +16,7 @@ macro_rules! uint_impl {
pub const MIN: Self = 0;

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

0 comments on commit 0e01749

Please sign in to comment.