docs: Remove link from self
When we move `SignedAmount` to a submodule linking to `self` introduces a clippy warning, I'm not exactly sure why but lets remove the link in preparation for the move.
This commit is contained in:
parent
13f9fd1b77
commit
0fc0e8760b
|
@ -800,7 +800,7 @@ impl SignedAmount {
|
|||
|
||||
/// Subtraction that doesn't allow negative [`SignedAmount`]s.
|
||||
///
|
||||
/// Returns [`None`] if either [`self`], `rhs` or the result is strictly negative.
|
||||
/// Returns [`None`] if either `self`, `rhs` or the result is strictly negative.
|
||||
pub fn positive_sub(self, rhs: SignedAmount) -> Option<SignedAmount> {
|
||||
if self.is_negative() || rhs.is_negative() || rhs > self {
|
||||
None
|
||||
|
|
Loading…
Reference in New Issue