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

Commit 9ba9307

Browse files
authored
Apply suggestions from code review
1 parent b0219f5 commit 9ba9307

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

primitives/arithmetic/src/traits.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,10 @@ impl<T: Sized> SaturatedConversion for T {}
334334
/// # }
335335
/// ```
336336
///
337-
/// choosing the correct [`ArithmeticError`] it should return in case of fail.
337+
/// choosing the correct [`ArithmeticError`](crate::ArithmeticError) it should return in case of fail.
338338
///
339339
/// The *EnsureOps* family functions follows the same behavior as *CheckedOps* but
340-
/// returning an [`ArithmeticError`] instead of `None`.
341-
///
342-
/// [`ArithmeticError`]: crate::ArithmeticError
340+
/// returning an [`ArithmeticError`](crate::ArithmeticError) instead of `None`.
343341
mod ensure {
344342
use super::{CheckedAdd, CheckedDiv, CheckedMul, CheckedSub, Zero};
345343
use crate::{ArithmeticError, FixedPointNumber, FixedPointOperand};

0 commit comments

Comments
 (0)