about summary refs log tree commit diff
path: root/library/core/src/num
diff options
context:
space:
mode:
authorGoodDaisy <90915921+GoodDaisy@users.noreply.github.com>2023-10-23 20:29:24 +0800
committerGoodDaisy <90915921+GoodDaisy@users.noreply.github.com>2023-10-23 20:52:14 +0800
commit0d780b108b007c6232ab3cbba8c47822edbbbddd (patch)
tree07f19af55be0a703a1463b1826ea6e8c8e3c716e /library/core/src/num
parenta56bd2b944aed6b4a0507cc1870fb4c86d08e48e (diff)
downloadrust-0d780b108b007c6232ab3cbba8c47822edbbbddd.tar.gz
rust-0d780b108b007c6232ab3cbba8c47822edbbbddd.zip
fix typos in comments
Diffstat (limited to 'library/core/src/num')
-rw-r--r--library/core/src/num/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/mod.rs b/library/core/src/num/mod.rs
index 8b127132c1c..a6c1adfac65 100644
--- a/library/core/src/num/mod.rs
+++ b/library/core/src/num/mod.rs
@@ -114,7 +114,7 @@ macro_rules! midpoint_impl {
                       without modifying the original"]
         #[inline]
         pub const fn midpoint(self, rhs: $SelfT) -> $SelfT {
-            // Use the well known branchless algorthim from Hacker's Delight to compute
+            // Use the well known branchless algorithm from Hacker's Delight to compute
             // `(a + b) / 2` without overflowing: `((a ^ b) >> 1) + (a & b)`.
             ((self ^ rhs) >> 1) + (self & rhs)
         }