mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 23:02:34 +00:00
add edition2021 as an option
This commit is contained in:
parent
b87c231fc3
commit
c06f450e7d
1 changed files with 2 additions and 2 deletions
|
@ -63,8 +63,8 @@ Options for the Rust language, relevant to running tests and playground
|
||||||
integration.
|
integration.
|
||||||
|
|
||||||
- **edition**: Rust edition to use by default for the code snippets. Default
|
- **edition**: Rust edition to use by default for the code snippets. Default
|
||||||
is "2015". Individual code blocks can be controlled with the `edition2015`
|
is "2015". Individual code blocks can be controlled with the `edition2015`,
|
||||||
or `edition2018` annotations, such as:
|
`edition2018` or `edition2021` annotations, such as:
|
||||||
|
|
||||||
~~~text
|
~~~text
|
||||||
```rust,edition2015
|
```rust,edition2015
|
||||||
|
|
Loading…
Reference in a new issue