Skip to content

Commit 57b7217

Browse files
committed
Minor corrections to comments
* Minor corrections to comments
1 parent 226f3bc commit 57b7217

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/core/src/num/int_sqrt.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ macro_rules! middle_stage {
166166
// the two most-significant bits is a 1.
167167
//
168168
// Then these stages take as many of the most-significant bits of `$n`
169-
// that fit in this stage's type. For example, the stage that handles
170-
// `u32` deals with the 32 most-significant bits of `$n`. This means
171-
// that each stage has at least one 1 bit in `n`'s two most-significant
172-
// bits, making `n` nonzero.
169+
// as will fit in this stage's type. For example, the stage that
170+
// handles `u32` deals with the 32 most-significant bits of `$n`. This
171+
// means that each stage has at least one 1 bit in `n`'s two
172+
// most-significant bits, making `n` nonzero.
173173
//
174174
// Then, the stage previous to this produces `$s` as the correct
175175
// integer square root for the previous type. Since it was taking the
@@ -206,7 +206,7 @@ macro_rules! last_stage {
206206
($ty:ty, $n:ident, $s:ident, $r:ident) => {{
207207
// SAFETY: Inform the optimizer that `$s` is nonzero. This will allow
208208
// it to avoid generating code to handle division-by-zero panics in the
209-
// divisions below.
209+
// division below.
210210
//
211211
// See the proof in the `middle_stage` macro above.
212212
unsafe { core::hint::assert_unchecked($s != 0) };

0 commit comments

Comments
 (0)