Skip to content

Commit e5f7d1a

Browse files
Max Hauschcramertj
Max Hausch
authored andcommitted
Fix em dashes
1 parent 46c28be commit e5f7d1a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/01_getting_started/02_why_async.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ different threads, like this:
1212
{{#include ../../examples/01_02_why_async/src/lib.rs:get_two_sites}}
1313
```
1414

15-
This works fine for many applications-- after all, threads were designed
15+
This works fine for many applicationsafter all, threads were designed
1616
to do just this: run multiple different tasks at once. However, they also
1717
come with some limitations. There's a lot of overhead involved in the
1818
process of switching between different threads and sharing data between
@@ -29,7 +29,7 @@ once without creating multiple threads:
2929
Overall, asynchronous applications have the potential to be much faster and
3030
use fewer resources than a corresponding threaded implementation. However,
3131
there is a cost. Threads are natively supported by the operating system,
32-
and using them doesn't require any special programming model-- any function
32+
and using them doesn't require any special programming modelany function
3333
can create a thread, and calling a function that uses threads is usually
3434
just as easy as calling any normal function. However, asynchronous functions
3535
require special support from the language or libraries.

src/01_getting_started/04_async_await_primer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ individually:
4848
{{#include ../../examples/01_04_async_await_primer/src/lib.rs:block_on_each}}
4949
```
5050

51-
However, we're not giving the best performance possible this way-- we're
51+
However, we're not giving the best performance possible this waywe're
5252
only ever doing one thing at once! Clearly we have to learn the song before
5353
we can sing it, but it's possible to dance at the same time as learning and
5454
singing the song. To do this, we can create two separate `async fn` which

src/07_workarounds/05_recursion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enum Recursive {
3333
}
3434
```
3535

36-
This won't work-- we've created an infinitely-sized type!
36+
This won't workwe've created an infinitely-sized type!
3737
The compiler will complain:
3838

3939
```

0 commit comments

Comments
 (0)