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.
1 parent 658f91a commit bfb7361Copy full SHA for bfb7361
src/doc/book/concurrency.md
@@ -295,12 +295,12 @@ fn main() {
295
let mut data = data.lock().unwrap();
296
*data += 1;
297
298
- let _ = tx.send(());
+ tx.send(()).unwrap();
299
});
300
}
301
302
for _ in 0..10 {
303
- let _ = rx.recv();
+ rx.recv().unwrap();
304
305
306
```
@@ -324,7 +324,7 @@ fn main() {
324
thread::spawn(move || {
325
let answer = i * i;
326
327
- let _ = tx.send(answer);
+ tx.send(answer).unwrap();
328
329
330
0 commit comments