Add comment about overflow behavior for next_power_of_two
This commit is contained in:
parent
8f9caff988
commit
67684a399c
1 changed files with 3 additions and 0 deletions
|
|
@ -2340,6 +2340,9 @@ macro_rules! uint_impl {
|
|||
}
|
||||
|
||||
/// Returns the smallest power of two greater than or equal to `self`.
|
||||
/// When return value overflows, it panics in debug mode and return
|
||||
/// value is wrapped in release mode.
|
||||
///
|
||||
/// More details about overflow behavior can be found in [RFC 560].
|
||||
///
|
||||
/// # Examples
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue