Skip to content
Permalink
Browse files

typos

  • Loading branch information...
ajmwagar committed Apr 15, 2019
1 parent 559dd5c commit 21e6cb7d18e5f858bd9035566fb92b8816bf06f8
Showing with 2 additions and 2 deletions.
  1. +2 −2 content/posts/code/multithreading-rust/index.en.md
@@ -15,7 +15,7 @@ Multi-threading, Concurrency, and Parallelism are hard and can be scary. With pr

## Multi-threading

There are multiple ways that Rust can help us prevent data-race and enforce thread safety.
There are multiple ways that Rust can help us prevent data-races and enforce thread safety.

### Arc & Mutex

@@ -64,7 +64,7 @@ fn main() {
}
```

In the example above we safely mutate an integer across threads, this can be applied with larger data types, however, for event-based interaction across threads I recommend using an `MPSC` (Multi-Producer, Single Consumer) channel.
In the example above, we safely mutate an integer across threads. This can be applied with larger data types, however, for event-based interaction across threads, I recommend using an `MPSC` (Multi-Producer, Single Consumer) channel.

### MPSC Channels

0 comments on commit 21e6cb7

Please sign in to comment.
You can’t perform that action at this time.