Skip to content

Commit c10b739

Browse files
authored
Use $ consistently in bash scripts and apply bash syntax highlighting (#761)
1 parent b907bdf commit c10b739

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

content/tokio/tutorial/channels.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@ Now that we have learned a bit about concurrency with Tokio, let's apply this on
66
the client side. Put the server code we wrote before into an explicit binary
77
file:
88

9-
```text
10-
mkdir src/bin
11-
mv src/main.rs src/bin/server.rs
9+
```bash
10+
$ mkdir src/bin
11+
$ mv src/main.rs src/bin/server.rs
1212
```
1313

1414
and create a new binary file that will contain the client code:
1515

16-
```text
17-
touch src/bin/client.rs
16+
```bash
17+
$ touch src/bin/client.rs
1818
```
1919

2020
In this file you will write this page's code. Whenever you want to run it,
2121
you will have to launch the server first in a separate terminal window:
2222

23-
```text
24-
cargo run --bin server
23+
```bash
24+
$ cargo run --bin server
2525
```
2626

2727
And then the client, __separately__:
2828

29-
```text
30-
cargo run --bin client
29+
```bash
30+
$ cargo run --bin client
3131
```
3232

3333
That being said, let's code!

content/tokio/tutorial/io.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,14 @@ To start, we will implement the echo logic using the [`io::copy`][copy] utility.
163163

164164
You can write up this code in a new binary file:
165165

166-
```text
167-
touch src/bin/echo-server-copy.rs
166+
```bash
167+
$ touch src/bin/echo-server-copy.rs
168168
```
169169

170170
That you can launch (or just check the compilation) with:
171171

172-
```text
173-
cargo run --bin echo-server-copy
172+
```bash
173+
$ cargo run --bin echo-server-copy
174174
```
175175

176176
You will be able to try the server using a standard command-line tool such as `telnet`, or by writing

content/tokio/tutorial/streams.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ If you hit an error message like this, try pinning the value!
152152

153153
Before trying to run this, start the Mini-Redis server:
154154

155-
```text
155+
```bash
156156
$ mini-redis-server
157157
```
158158

0 commit comments

Comments
 (0)