Skip to content

Commit 418ba9e

Browse files
committed
Auto merge of rust-lang#117126 - matthiaskrgr:rollup-8huie8f, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - rust-lang#117081 (fix typos in comments) - rust-lang#117091 (`OptWithInfcx` naming nits, trait bound simplifications) - rust-lang#117092 (Add regression test for rust-lang#117058) - rust-lang#117093 (Update books) - rust-lang#117105 (remove change-id assertion in bootstrap test) r? `@ghost` `@rustbot` modify labels: rollup
2 parents fedb839 + 4fb109d commit 418ba9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ macro_rules! midpoint_impl {
114114
without modifying the original"]
115115
#[inline]
116116
pub const fn midpoint(self, rhs: $SelfT) -> $SelfT {
117-
// Use the well known branchless algorthim from Hacker's Delight to compute
117+
// Use the well known branchless algorithm from Hacker's Delight to compute
118118
// `(a + b) / 2` without overflowing: `((a ^ b) >> 1) + (a & b)`.
119119
((self ^ rhs) >> 1) + (self & rhs)
120120
}

0 commit comments

Comments
 (0)