about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2022-02-04 17:59:53 +0100
committerTrevor Spiteri <tspiteri@ieee.org>2022-02-04 17:59:53 +0100
commitd6e1df8d5958214f7b05fa5848bca4dbb7fb8d8e (patch)
treeb2dbc8043e04c4ce57c630bc24e556cd2b6c32f6
parent1be5c8f90912c446ecbdc405cbc4a89f9acd20fd (diff)
downloadrust-d6e1df8d5958214f7b05fa5848bca4dbb7fb8d8e.tar.gz
rust-d6e1df8d5958214f7b05fa5848bca4dbb7fb8d8e.zip
doc: use U+2212 for minus sign in integer MIN/MAX text
-rw-r--r--library/core/src/num/int_macros.rs4
-rw-r--r--library/core/src/num/uint_macros.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs
index 79436c8e8ed..9949ecf0d36 100644
--- a/library/core/src/num/int_macros.rs
+++ b/library/core/src/num/int_macros.rs
@@ -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>", $BITS_MINUS_ONE, "</sup>.")]
+        #[doc = concat!("&minus;2<sup>", $BITS_MINUS_ONE, "</sup>.")]
         ///
         /// # Examples
         ///
@@ -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>", $BITS_MINUS_ONE, "</sup> - 1.")]
+        #[doc = concat!("2<sup>", $BITS_MINUS_ONE, "</sup> &minus; 1.")]
         ///
         /// # Examples
         ///
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs
index 0bb65497776..555e121f9d0 100644
--- a/library/core/src/num/uint_macros.rs
+++ b/library/core/src/num/uint_macros.rs
@@ -17,7 +17,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>", $BITS, "</sup> - 1.")]
+        #[doc = concat!("2<sup>", $BITS, "</sup> &minus; 1.")]
         ///
         /// # Examples
         ///