Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr authored Dec 28, 2022
1 parent b0219f5 commit 9ba9307
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions primitives/arithmetic/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,10 @@ impl<T: Sized> SaturatedConversion for T {}
/// # }
/// ```
///
/// choosing the correct [`ArithmeticError`] it should return in case of fail.
/// choosing the correct [`ArithmeticError`](crate::ArithmeticError) it should return in case of fail.
///
/// The *EnsureOps* family functions follows the same behavior as *CheckedOps* but
/// returning an [`ArithmeticError`] instead of `None`.
///
/// [`ArithmeticError`]: crate::ArithmeticError
/// returning an [`ArithmeticError`](crate::ArithmeticError) instead of `None`.
mod ensure {
use super::{CheckedAdd, CheckedDiv, CheckedMul, CheckedSub, Zero};
use crate::{ArithmeticError, FixedPointNumber, FixedPointOperand};
Expand Down

0 comments on commit 9ba9307

Please sign in to comment.