rollup merge of #18421 : tbu-/pr_checkeddiv1

This commit is contained in:
Alex Crichton 2014-10-30 08:57:45 -07:00
commit dfefe9a152

View File

@ -1353,7 +1353,7 @@ checked_impl!(CheckedMul, checked_mul, i64, intrinsics::i64_mul_with_overflow)
/// wrapping around on underflow and overflow.
pub trait CheckedDiv: Div<Self, Self> {
/// Divides two numbers, checking for underflow, overflow and division by zero. If any of that
/// happens, / `None` is returned.
/// happens, `None` is returned.
///
/// # Example
///