Skip to content

Commit 84ab5fe

Browse files
authored
fix a small typo in 11_locks.md (mainmatter#219)
1 parent d11ff62 commit 84ab5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/07_threads/11_locks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ drop(guard)
5858
## Locking granularity
5959

6060
What should our `Mutex` wrap?\
61-
The simplest option would be the wrap the entire `TicketStore` in a single `Mutex`.\
61+
The simplest option would be to wrap the entire `TicketStore` in a single `Mutex`.\
6262
This would work, but it would severely limit the system's performance: you wouldn't be able to read tickets in parallel,
6363
because every read would have to wait for the lock to be released.\
6464
This is known as **coarse-grained locking**.

0 commit comments

Comments
 (0)