about summary refs log tree commit diff
path: root/src/libcore/slice
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-10-12 06:38:11 +0000
committerbors <bors@rust-lang.org>2018-10-12 06:38:11 +0000
commit8dc554a32507de2d923e5ba3ca3d672adaf0a822 (patch)
treeae6da91224688aba4e7b05eab74bd6f759a7a3ca /src/libcore/slice
parent567557f630693d47fd21151ff1fdbc430e330a13 (diff)
parent0b3e5eb6cc0f2a28ff99d2962fbb4fd340736ef9 (diff)
downloadrust-8dc554a32507de2d923e5ba3ca3d672adaf0a822.tar.gz
rust-8dc554a32507de2d923e5ba3ca3d672adaf0a822.zip
Auto merge of #54534 - nagisa:align-offset-simplification, r=alexcrichton
Simplify implementation of align_offset slightly
Diffstat (limited to 'src/libcore/slice')
-rw-r--r--src/libcore/slice/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs
index 76dcca02578..c9013f589ed 100644
--- a/src/libcore/slice/mod.rs
+++ b/src/libcore/slice/mod.rs
@@ -1932,7 +1932,7 @@ impl<T> [T] {
         fn gcd(a: usize, b: usize) -> usize {
             // iterative stein’s algorithm
             // We should still make this `const fn` (and revert to recursive algorithm if we do)
-            // because relying on llvm to consteval all this is… well, it makes me
+            // because relying on llvm to consteval all this is… well, it makes me uncomfortable.
             let (ctz_a, mut ctz_b) = unsafe {
                 if a == 0 { return b; }
                 if b == 0 { return a; }