Closed
Description
Location
All wrapping_rem
methods.
Summary
As reported in yoshuawuyts/futures-concurrency#156, when calling the wrapping_rem
functions with a value of 0
, a panic is triggered. The documentation of the wrapping_rem
method should include a # panic
section making note of this.
Example
100usize.wrapping_rem(0);
thread 'main' panicked at 'attempt to calculate the remainder with a divisor of zero',