We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fedb839 + 4fb109d commit 418ba9eCopy full SHA for 418ba9e
core/src/num/mod.rs
@@ -114,7 +114,7 @@ macro_rules! midpoint_impl {
114
without modifying the original"]
115
#[inline]
116
pub const fn midpoint(self, rhs: $SelfT) -> $SelfT {
117
- // Use the well known branchless algorthim from Hacker's Delight to compute
+ // Use the well known branchless algorithm from Hacker's Delight to compute
118
// `(a + b) / 2` without overflowing: `((a ^ b) >> 1) + (a & b)`.
119
((self ^ rhs) >> 1) + (self & rhs)
120
}
0 commit comments