Skip to content

Commit

Permalink
Add comment about overflow behavior for next_power_of_two
Browse files Browse the repository at this point in the history
  • Loading branch information
irfanhudda committed Apr 28, 2017
1 parent 8f9caff commit 67684a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcore/num/mod.rs
Expand Up @@ -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
Expand Down

0 comments on commit 67684a3

Please sign in to comment.