Skip to content

Commit d6e1df8

Browse files
committed
doc: use U+2212 for minus sign in integer MIN/MAX text
1 parent 1be5c8f commit d6e1df8

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>", $BITS_MINUS_ONE, "</sup>.")]
7+
#[doc = concat!("&minus;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>", $BITS_MINUS_ONE, "</sup> - 1.")]
20+
#[doc = concat!("2<sup>", $BITS_MINUS_ONE, "</sup> &minus; 1.")]
2121
///
2222
/// # Examples
2323
///

library/core/src/num/uint_macros.rs

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

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

0 commit comments

Comments
 (0)