Skip to content

Commit 47f8fba

Browse files
authored
Update 11_locks.md (mainmatter#94)
Suggest removing an extra semicolon.
1 parent 1aff5ff commit 47f8fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/src/07_threads/11_locks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fn main() {
9999
let guard = lock.lock().unwrap();
100100

101101
spawn(move || {
102-
receiver.recv().unwrap();;
102+
receiver.recv().unwrap();
103103
});
104104

105105
// Try to send the guard over the channel
@@ -118,7 +118,7 @@ error[E0277]: `MutexGuard<'_, i32>` cannot be sent between threads safely
118118
| _-----_^
119119
| | |
120120
| | required by a bound introduced by this call
121-
11 | | receiver.recv().unwrap();;
121+
11 | | receiver.recv().unwrap();
122122
12 | | });
123123
| |_^ `MutexGuard<'_, i32>` cannot be sent between threads safely
124124
|

0 commit comments

Comments
 (0)