diff --git a/src/ch20-02-multithreaded.md b/src/ch20-02-multithreaded.md index 24c7206979..244f8e53fb 100644 --- a/src/ch20-02-multithreaded.md +++ b/src/ch20-02-multithreaded.md @@ -226,8 +226,9 @@ shows us the following: ```rust,ignore pub fn spawn(f: F) -> JoinHandle where - F: FnOnce() -> T + Send + 'static, - T: Send + 'static + F: FnOnce() -> T, + F: Send + 'static, + T: Send + 'static, ``` The `F` type parameter is the one we’re concerned with here; the `T` type @@ -321,8 +322,9 @@ the `thread::spawn` signature: ```rust,ignore pub fn spawn(f: F) -> JoinHandle where - F: FnOnce() -> T + Send + 'static, - T: Send + 'static + F: FnOnce() -> T, + F: Send + 'static, + T: Send + 'static, ``` The `spawn` function returns a `JoinHandle`, where `T` is the type that the