Skip to content

Commit 559bb21

Browse files
authored
Update posts/2019-05-23-Rust-1.35.0.md
1 parent 3271f12 commit 559bb21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2019-05-23-Rust-1.35.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ In Rust 1.35.0, the `FnOnce`, `FnMut`, and the `Fn` traits [are now implemented]
3939
`Box<dyn FnMut>`, and `Box<dyn Fn>` respectively.
4040

4141
Previously, if you wanted to call the function stored in a boxed closure, you had to use [`FnBox`].
42-
This was because instances of `Box<dyn FnOnce>`, etc did not implement the respective `Fn*` trait.
42+
This was because instances of `Box<dyn FnOnce>` and friends did not implement the respective `Fn*` traits.
4343
This also meant that it was not possible to pass boxed functions to code expecting an implementor of a `Fn` trait,
4444
and you had to create temporary closures to pass them down.
4545

0 commit comments

Comments
 (0)