Skip to content

Commit 267474a

Browse files
committed
update original
1 parent 6c7aa99 commit 267474a

13 files changed

Lines changed: 74 additions & 60 deletions

File tree

rust-cookbook/src/asynchronous/channel/bounded.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ async fn main() -> io::Result<()> {
6363
}
6464
```
6565

66-
> Add `tokio` to `Cargo.toml` with the [`macros`] and [`sync`] features enabled.
67-
> ```toml
68-
> [dependencies]
69-
> tokio = { version = "*", features = ["macros", "sync"] }
70-
> ```
66+
Add `tokio` to `Cargo.toml` with the [`macros`] and [`sync`] features enabled.
67+
68+
```toml
69+
[dependencies]
70+
tokio = { version = "*", features = ["macros", "sync"] }
71+
```
7172

7273
[`bounded channel`]: https://docs.rs/tokio/*/tokio/sync/mpsc/fn.channel.html
7374
[`macros`]: https://docs.rs/crate/tokio/*/features#macros

rust-cookbook/src/asynchronous/channel/unbounded.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ async fn main() -> io::Result<()> {
6161
}
6262
```
6363

64-
> Add `tokio` to `Cargo.toml` with the [`macros`] and [`sync`] features enabled.
65-
> ```toml
66-
> [dependencies]
67-
> tokio = { version = "*", features = ["macros", "sync"] }
68-
> ```
64+
Add `tokio` to `Cargo.toml` with the [`macros`] and [`sync`] features enabled.
65+
66+
```toml
67+
[dependencies]
68+
tokio = { version = "*", features = ["macros", "sync"] }
69+
```
6970

7071
[`macros`]: https://docs.rs/crate/tokio/*/features#macros
7172
[`sync`]: https://docs.rs/crate/tokio/*/features#sync

rust-cookbook/src/asynchronous/fs/create.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ async fn main() -> io::Result<()> {
2929
```
3030

3131

32-
> Add `tokio` to `Cargo.toml` with the [`macros`] and [`fs`] features enabled.
33-
> ```toml
34-
> [dependencies]
35-
> tokio = { version = "*", features = ["macros", "fs"] }
36-
> ```
32+
Add `tokio` to `Cargo.toml` with the [`macros`] and [`fs`] features enabled.
33+
34+
```toml
35+
[dependencies]
36+
tokio = { version = "*", features = ["macros", "fs"] }
37+
```
3738

3839
[`File::create`]: https://docs.rs/tokio/*/tokio/fs/struct.File.html#method.create
3940
[`create_dir_all`]: https://docs.rs/tokio/*/tokio/fs/fn.create_dir_all.html

rust-cookbook/src/asynchronous/fs/read.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ async fn main() -> io::Result<()> {
3030
}
3131
```
3232

33-
> Add `tokio` to `Cargo.toml` with the [`macros`] and [`fs`] features enabled.
34-
> ```toml
35-
> [dependencies]
36-
> tokio = { version = "*", features = ["macros", "fs"] }
37-
> ```
33+
Add `tokio` to `Cargo.toml` with the [`macros`] and [`fs`] features enabled.
34+
35+
```toml
36+
[dependencies]
37+
tokio = { version = "*", features = ["macros", "fs"] }
38+
```
3839

3940
[`fs`]: https://docs.rs/crate/tokio/*/features#fs
4041
[`macros`]: https://docs.rs/crate/tokio/*/features#macros

rust-cookbook/src/asynchronous/fs/remove.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ async fn main() -> io::Result<()> {
2727
}
2828
```
2929

30-
> Add `tokio` to `Cargo.toml` with the [`macros`] and [`fs`] features enabled.
31-
> ```toml
32-
> [dependencies]
33-
> tokio = { version = "*", features = ["macros", "fs"] }
34-
> ```
30+
Add `tokio` to `Cargo.toml` with the [`macros`] and [`fs`] features enabled.
31+
32+
```toml
33+
[dependencies]
34+
tokio = { version = "*", features = ["macros", "fs"] }
35+
```
3536

3637
[`fs`]: https://docs.rs/crate/tokio/*/features#fs
3738
[`macros`]: https://docs.rs/crate/tokio/*/features#macros

rust-cookbook/src/asynchronous/fs/rw_traits.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ async fn main() -> io::Result<()> {
3838
}
3939
```
4040

41-
> Add `tokio` to `Cargo.toml` with the [`macros`], [`io-util`] and [`fs`] features enabled.
42-
> ```toml
43-
> [dependencies]
44-
> tokio = { version = "*", features = ["macros", "fs", "io-util"] }
45-
> ```
41+
Add `tokio` to `Cargo.toml` with the [`macros`], [`io-util`] and [`fs`] features enabled.
42+
43+
```toml
44+
[dependencies]
45+
tokio = { version = "*", features = ["macros", "fs", "io-util"] }
46+
```
4647

4748
[`AsyncReadExt`]: https://docs.rs/tokio/*/tokio/io/trait.AsyncReadExt.html
4849
[`AsyncRead`]: https://docs.rs/tokio/*/tokio/io/trait.AsyncRead.html

rust-cookbook/src/asynchronous/fs/write.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ async fn main() -> io::Result<()> {
1717
}
1818
```
1919

20-
> Add `tokio` to `Cargo.toml` with the [`macros`] and [`fs`] features enabled.
21-
> ```toml
22-
> [dependencies]
23-
> tokio = { version = "*", features = ["macros", "fs"] }
24-
> ```
20+
Add `tokio` to `Cargo.toml` with the [`macros`] and [`fs`] features enabled.
21+
22+
```toml
23+
[dependencies]
24+
tokio = { version = "*", features = ["macros", "fs"] }
25+
```
2526

2627
[`fs`]: https://docs.rs/crate/tokio/*/features#fs
2728
[`macros`]: https://docs.rs/crate/tokio/*/features#macros

rust-cookbook/src/asynchronous/ftc/ctrl_c.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ async fn main() {
3939
}
4040
```
4141

42-
> Add `tokio` to `Cargo.toml` with the [`macros`] and [`signal`] features enabled.
43-
> ```toml
44-
> [dependencies]
45-
> tokio = { version = "*", features = ["macros", "signal"] }
46-
> ```
42+
Add `tokio` to `Cargo.toml` with the [`macros`] and [`signal`] features enabled.
43+
44+
```toml
45+
[dependencies]
46+
tokio = { version = "*", features = ["macros", "signal"] }
47+
```
4748

4849
[`macros`]: https://docs.rs/crate/tokio/*/features#macros
4950
[`signal`]: https://docs.rs/crate/tokio/*/features#signal

rust-cookbook/src/asynchronous/join.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ async fn main() {
5555
}
5656
```
5757

58-
> Add `tokio` to `Cargo.toml` with the [`macros`] and [`rt`] features enabled.
59-
> ```toml
60-
> [dependencies]
61-
> tokio = { version = "*", features = ["macros", "rt"] }
62-
> ```
58+
Add `tokio` to `Cargo.toml` with the [`macros`] and [`rt`] features enabled.
59+
60+
```toml
61+
[dependencies]
62+
tokio = { version = "*", features = ["macros", "rt"] }
63+
```
6364

6465
{{#include ../links.md}}
6566

rust-cookbook/src/asynchronous/rt/tokio-rt-builder.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ fn main() -> io::Result<()> {
3535
}
3636
```
3737

38-
> Add `tokio` to `Cargo.toml` with the [`rt-multi-thread`] feature enabled.
39-
> ```toml
40-
> [dependencies]
41-
> tokio = { version = "*", features = ["rt-multi-thread"] }
42-
> ```
38+
Add `tokio` to `Cargo.toml` with the [`rt-multi-thread`] feature enabled.
39+
40+
```toml
41+
[dependencies]
42+
tokio = { version = "*", features = ["rt-multi-thread"] }
43+
```
4344

4445
[`Builder`]: https://docs.rs/tokio/*/tokio/runtime/struct.Builder.html
4546
[`rt-multi-thread`]: https://docs.rs/crate/tokio/*/features#rt-multi-thread

0 commit comments

Comments
 (0)