Skip to content

Commit d1fcb2f

Browse files
committed
Rollup merge of #26808 - tshepang:closures, r=steveklabnik
2 parents 8c7fd35 + 10e762e commit d1fcb2f

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
@@ -3529,13 +3529,14 @@ more of the closure traits:
35293529

35303530
* `FnMut`
35313531
: The closure can be called multiple times as mutable. A closure called as
3532-
`FnMut` can mutate values from its environment. `FnMut` implies
3533-
`FnOnce`.
3532+
`FnMut` can mutate values from its environment. `FnMut` inherits from
3533+
`FnOnce` (i.e. anything implementing `FnMut` also implements `FnOnce`).
35343534

35353535
* `Fn`
35363536
: The closure can be called multiple times through a shared reference.
35373537
A closure called as `Fn` can neither move out from nor mutate values
3538-
from its environment. `Fn` implies `FnMut` and `FnOnce`.
3538+
from its environment. `Fn` inherits from `FnMut`, which itself
3539+
inherits from `FnOnce`.
35393540

35403541

35413542
### Trait objects

0 commit comments

Comments
 (0)