Skip to content

Commit 4fb109d

Browse files
authored
Rollup merge of rust-lang#117081 - GoodDaisy:master, r=wesleywiser
fix typos in comments
2 parents 4291748 + 7050895 commit 4fb109d

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)