We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
uX::checked_next_multiple_of
1 parent 371f3cd commit 56bb6f5Copy full SHA for 56bb6f5
1 file changed
library/core/src/num/uint_macros.rs
@@ -1927,7 +1927,8 @@ macro_rules! uint_impl {
1927
}
1928
1929
/// Calculates the smallest value greater than or equal to `self` that
1930
- /// is a multiple of `rhs`. If `rhs` is negative,
+ /// is a multiple of `rhs`. Returns `None` is `rhs` is zero or the
1931
+ /// operation would result in overflow.
1932
///
1933
/// # Examples
1934
0 commit comments