diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2021-09-07 02:14:04 -0400 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2021-09-07 02:14:04 -0400 |
| commit | 56bb6f5a25e8babe1cba540f9935032b0f4941ce (patch) | |
| tree | d1face8cdbc85ecc57fbfe70ccedee43ec1347ec | |
| parent | 371f3cd3fe523d0b398ed1db1620667c53ba7d02 (diff) | |
| download | rust-56bb6f5a25e8babe1cba540f9935032b0f4941ce.tar.gz rust-56bb6f5a25e8babe1cba540f9935032b0f4941ce.zip | |
Fix docs for `uX::checked_next_multiple_of`
| -rw-r--r-- | library/core/src/num/uint_macros.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs index 02a5ed4ca80..7264088bb95 100644 --- a/library/core/src/num/uint_macros.rs +++ b/library/core/src/num/uint_macros.rs @@ -1927,7 +1927,8 @@ macro_rules! uint_impl { } /// Calculates the smallest value greater than or equal to `self` that - /// is a multiple of `rhs`. If `rhs` is negative, + /// is a multiple of `rhs`. Returns `None` is `rhs` is zero or the + /// operation would result in overflow. /// /// # Examples /// |
