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 eaaed00 commit 90bba8bCopy full SHA for 90bba8b
library/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