Skip to content

Commit

Permalink
Fix em dashes
Browse files Browse the repository at this point in the history
When reading this section as HTML, these double hyphens stood out to me. It looks like this was introduced last year in rust-lang#3135. I found other parts of the book where em dashes used standard Unicode em dash characters (rather than some Markdown representation) so I updated these to use them.

(Note that I actually think this would read more clearly if it used parentheses rather than em dashes, but I figured I'd start with the smallest possible suggestion.)
  • Loading branch information
glasser authored Mar 10, 2023
1 parent 21a2ed1 commit d454a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch16-02-message-passing.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ producer for now, but we’ll add multiple producers when we get this example
working.

The `mpsc::channel` function returns a tuple, the first element of which is the
sending end--the transmitter--and the second element is the receiving end--the
sending endthe transmitterand the second element is the receiving endthe
receiver. The abbreviations `tx` and `rx` are traditionally used in many fields
for *transmitter* and *receiver* respectively, so we name our variables as such
to indicate each end. We’re using a `let` statement with a pattern that
Expand Down

0 comments on commit d454a70

Please sign in to comment.