Skip to content

Commit 316bdf0

Browse files
authored
Clarify mul_add docs
1 parent 4ac94b4 commit 316bdf0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ops/mul_add.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ pub trait MulAdd<A = Self, B = Self> {
2424
/// The resulting type after applying the fused multiply-add.
2525
type Output;
2626

27-
/// Performs the fused multiply-add operation.
27+
/// Performs the fused multiply-add operation `(self * a) + b`
2828
fn mul_add(self, a: A, b: B) -> Self::Output;
2929
}
3030

31-
/// The fused multiply-add assignment operation.
31+
/// The fused multiply-add assignment operation `self = (self * a) + b`
3232
pub trait MulAddAssign<A = Self, B = Self> {
33-
/// Performs the fused multiply-add operation.
33+
/// Performs the fused multiply-add assignment operation `self = (self * a) + b`
3434
fn mul_add_assign(&mut self, a: A, b: B);
3535
}
3636

0 commit comments

Comments
 (0)