Skip to content

Commit

Permalink
Fix minor typo in 09_bounded.md (#125)
Browse files Browse the repository at this point in the history
Trim errant `s` from `enqueue`'s end in [Bounded vs unbounded channels](https://rust-exercises.com/100-exercises/07_threads/09_bounded.html):

`if the producers enqueues messages` -> `if the producers enqueue messages`
  • Loading branch information
mckzm authored Aug 5, 2024
1 parent 5ef0a6a commit e732ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/07_threads/09_bounded.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
So far we've been using unbounded channels.\
You can send as many messages as you want, and the channel will grow to accommodate them.\
In a multi-producer single-consumer scenario, this can be problematic: if the producers
enqueues messages at a faster rate than the consumer can process them, the channel will
enqueue messages at a faster rate than the consumer can process them, the channel will
keep growing, potentially consuming all available memory.

Our recommendation is to **never** use an unbounded channel in a production system.\
Expand Down

0 comments on commit e732ea8

Please sign in to comment.