diff options
| -rw-r--r-- | src/libcore/num/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 0c7832168bb..8c4a6e871e1 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -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 |
