about summary refs log tree commit diff
path: root/library/core/src/num
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2025-01-31 22:31:43 -0800
committerScott McMurray <scottmcm@users.noreply.github.com>2025-01-31 22:31:43 -0800
commit5e6ae8bb5c884deea85c6f18cfba79fe48ccafa0 (patch)
tree4e54ea8180b7d808c313429824380728cb498f36 /library/core/src/num
parent61150a80f5d4fffea74ee9dabc991219813c744e (diff)
More PR feedback
Diffstat (limited to 'library/core/src/num')
-rw-r--r--library/core/src/num/uint_macros.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs
index f2d41fd93d5..29f6791ee6a 100644
--- a/library/core/src/num/uint_macros.rs
+++ b/library/core/src/num/uint_macros.rs
@@ -1187,13 +1187,11 @@ macro_rules! uint_impl {
             self % rhs
         }
 
-        /// Same value as
-        #[doc = concat!("`<", stringify!($SelfT), " as BitOr>::bitor(self, other)`")]
-        /// but UB if any bit position is set in both inputs.
+        /// Same value as `self | other`, but UB if any bit position is set in both inputs.
         ///
-        /// This is a situational μoptimization for places where you'd rather use
-        /// addition on some platforms and bitwise or on other platforms, based on
-        /// exactly which instructions combine better with whatever else you're
+        /// This is a situational micro-optimization for places where you'd rather
+        /// use addition on some platforms and bitwise or on other platforms, based
+        /// on exactly which instructions combine better with whatever else you're
         /// doing.  Note that there's no reason to bother using this for places
         /// where it's clear from the operations involved that they can't overlap.
         /// For example, if you're combining `u16`s into a `u32` with