Skip to content

Commit f286a75

Browse files
committed
Extend fix to wrapping_div, wrapping_div_euclid and wrapping_rem_euclid
1 parent 1170b7b commit f286a75

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

library/core/src/num/uint_macros.rs

+12
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,10 @@ macro_rules! uint_impl {
12591259
/// This function exists, so that all operations
12601260
/// are accounted for in the wrapping operations.
12611261
///
1262+
/// # Panics
1263+
///
1264+
/// This function will panic if `rhs` is 0.
1265+
///
12621266
/// # Examples
12631267
///
12641268
/// Basic usage:
@@ -1284,6 +1288,10 @@ macro_rules! uint_impl {
12841288
/// definitions of division are equal, this
12851289
/// is exactly equal to `self.wrapping_div(rhs)`.
12861290
///
1291+
/// # Panics
1292+
///
1293+
/// This function will panic if `rhs` is 0.
1294+
///
12871295
/// # Examples
12881296
///
12891297
/// Basic usage:
@@ -1337,6 +1345,10 @@ macro_rules! uint_impl {
13371345
/// definitions of division are equal, this
13381346
/// is exactly equal to `self.wrapping_rem(rhs)`.
13391347
///
1348+
/// # Panics
1349+
///
1350+
/// This function will panic if `rhs` is 0.
1351+
///
13401352
/// # Examples
13411353
///
13421354
/// Basic usage:

0 commit comments

Comments
 (0)