Add comment about overflow behavior for next_power_of_two

This commit is contained in:
Irfan Hudda 2017-04-29 00:06:54 +05:30
parent 8f9caff988
commit 67684a399c

View file

@ -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