Skip to content

Commit 10e762e

Browse files
committed
reference: 'inherits' is more clear than 'implies'
1 parent 912ab64 commit 10e762e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/doc/reference.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3517,13 +3517,14 @@ more of the closure traits:
35173517

35183518
* `FnMut`
35193519
: The closure can be called multiple times as mutable. A closure called as
3520-
`FnMut` can mutate values from its environment. `FnMut` implies
3521-
`FnOnce`.
3520+
`FnMut` can mutate values from its environment. `FnMut` inherits from
3521+
`FnOnce` (i.e. anything implementing `FnMut` also implements `FnOnce`).
35223522

35233523
* `Fn`
35243524
: The closure can be called multiple times through a shared reference.
35253525
A closure called as `Fn` can neither move out from nor mutate values
3526-
from its environment. `Fn` implies `FnMut` and `FnOnce`.
3526+
from its environment. `Fn` inherits from `FnMut`, which itself
3527+
inherits from `FnOnce`.
35273528

35283529

35293530
### Trait objects

0 commit comments

Comments
 (0)