Skip to content

Commit 786730f

Browse files
committed
Improve wording in docs for #[mul(forward_and_scalar)]
1 parent d8dbc5b commit 786730f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

impl/doc/mul.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type in question deriving for this is not implemented.
1616
NOTE: In case you don't want this behaviour you can add `#[mul(forward)]` in
1717
addition to `#[derive(Mul)]`. This will instead generate a `Mul` implementation
1818
with the same semantics as `Add`.
19-
You can also add `#[mul(forward_and_scalar)]` to implement both, this especially useful for structs that need to be multiplicable by itself and a scalar.
19+
You can also add `#[mul(forward_and_scalar)]` to implement both to generate both Mul-like and Add-like semantics.
2020

2121

2222

impl/doc/mul_assign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can add the `#[mul_assign(forward)]` attribute if you don't want the same
88
semantics as `Mul`.
99
This will instead generate a `MulAssign` implementation with the same semantics
1010
as `AddAssign`.
11-
You can add `#[mul_assign(forward_and_scalar)]` to generate both.
11+
You can add `#[mul_assign(forward_and_scalar)]` to generate both Mul-like and Add-like semantics.
1212

1313

1414

0 commit comments

Comments
 (0)