From 56bb6f5a25e8babe1cba540f9935032b0f4941ce Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Tue, 7 Sep 2021 02:14:04 -0400 Subject: [PATCH] Fix docs for `uX::checked_next_multiple_of` --- library/core/src/num/uint_macros.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ///