Skip to content

Commit 9974ff6

Browse files
committed
markup and typo nits
1 parent a41b872 commit 9974ff6

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

docs/src/tutorial/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Nothing is as simple as a chat server, right? Not quite, chat servers
44
already expose you to all the fun of asynchronous programming: how
5-
do you handle client connecting concurrently. How do handle them disconnecting?
6-
How do your distribute the messages?
5+
do you handle clients connecting concurrently. How do you handle them disconnecting?
6+
How do you distribute the messages?
77

88
In this tutorial, we will show you how to write one in `async-std`.
99

docs/src/tutorial/specification.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Protocol consists of utf-8 messages, separated by `\n`.
88
The client connects to the server and sends login as a first line.
99
After that, the client can send messages to other clients using the following syntax:
1010

11-
```
12-
login1, login2, ... login2: message
11+
```text
12+
login1, login2, ... loginN: message
1313
```
1414

1515
Each of the specified clients than receives a `from login: message` message.
1616

1717
A possible session might look like this
1818

19-
```
19+
```text
2020
On Alice's computer: | On Bob's computer:
2121
2222
> alice | > bob
@@ -29,7 +29,6 @@ On Alice's computer: | On Bob's computer:
2929
The main challenge for the chat server is keeping track of many concurrent connections.
3030
The main challenge for the chat client is managing concurrent outgoing messages, incoming messages and user's typing.
3131

32-
3332
## Getting Started
3433

3534
Let's create a new Cargo project:
@@ -45,4 +44,4 @@ At the moment `async-std` requires Rust nightly, so let's add a rustup override
4544
$ rustup override add nightly
4645
$ rustc --version
4746
rustc 1.38.0-nightly (c4715198b 2019-08-05)
48-
```
47+
```

0 commit comments

Comments
 (0)