We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9348998 commit f3b1c8aCopy full SHA for f3b1c8a
core/src/num/nonzero.rs
@@ -1270,7 +1270,7 @@ macro_rules! nonzero_integer_signedness_dependent_methods {
1270
// Inform the optimizer about it.
1271
unsafe { hint::assert_unchecked(res < 1 << (Self::BITS / 2)) };
1272
1273
- // SAFETY: The result is positive.
+ // SAFETY: The square root of an integer >= 1 is always >= 1.
1274
unsafe { Self::new_unchecked(res) }
1275
}
1276
};
0 commit comments