Skip to content

Commit bd6ce72

Browse files
authored
Rollup merge of #88712 - jhpratt:fix-int_rounding-docs, r=joshtriplett
Fix docs for `uX::checked_next_multiple_of` Thanks to `@photino` for noticing this [here](#88581 (comment)). r? `@joshtriplett` `@rustbot` label: +A-docs +A-waiting-on-review
2 parents 7d51dae + 56bb6f5 commit bd6ce72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/num/uint_macros.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,8 @@ macro_rules! uint_impl {
19241924
}
19251925

19261926
/// Calculates the smallest value greater than or equal to `self` that
1927-
/// is a multiple of `rhs`. If `rhs` is negative,
1927+
/// is a multiple of `rhs`. Returns `None` is `rhs` is zero or the
1928+
/// operation would result in overflow.
19281929
///
19291930
/// # Examples
19301931
///

0 commit comments

Comments
 (0)