We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b06edab + c2bc97e commit ea3d0a2Copy full SHA for ea3d0a2
src/ch20-02-multithreaded.md
@@ -226,8 +226,9 @@ shows us the following:
226
```rust,ignore
227
pub fn spawn<F, T>(f: F) -> JoinHandle<T>
228
where
229
- F: FnOnce() -> T + Send + 'static,
230
- T: Send + 'static
+ F: FnOnce() -> T,
+ F: Send + 'static,
231
+ T: Send + 'static,
232
```
233
234
The `F` type parameter is the one we’re concerned with here; the `T` type
@@ -321,8 +322,9 @@ the `thread::spawn` signature:
321
322
323
324
325
326
327
328
329
330
The `spawn` function returns a `JoinHandle<T>`, where `T` is the type that the
0 commit comments