Skip to content

Commit d3b0c12

Browse files
authored
Clarify mul_add docs: No Pseudocode
(changed doc to include dereferencing)
1 parent 316bdf0 commit d3b0c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ops/mul_add.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ pub trait MulAdd<A = Self, B = Self> {
2828
fn mul_add(self, a: A, b: B) -> Self::Output;
2929
}
3030

31-
/// The fused multiply-add assignment operation `self = (self * a) + b`
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 assignment operation `self = (self * a) + b`
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)