diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-01-31 22:31:43 -0800 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2025-01-31 22:31:43 -0800 |
| commit | 5e6ae8bb5c884deea85c6f18cfba79fe48ccafa0 (patch) | |
| tree | 4e54ea8180b7d808c313429824380728cb498f36 /library/core/src/num | |
| parent | 61150a80f5d4fffea74ee9dabc991219813c744e (diff) | |
More PR feedback
Diffstat (limited to 'library/core/src/num')
| -rw-r--r-- | library/core/src/num/uint_macros.rs | 10 |
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 |
