Merge pull request #3444 from daxpedda/patch-1
Additional info to default value of edition.
This commit is contained in:
commit
be5ffc3abe
@ -2358,9 +2358,9 @@ Specifies which edition is used by the parser.
|
|||||||
- **Possible values**: `2015`, `2018`
|
- **Possible values**: `2015`, `2018`
|
||||||
- **Stable**: Yes
|
- **Stable**: Yes
|
||||||
|
|
||||||
### Example
|
Rustfmt is able to pick up the edition used by reading the `Cargo.toml` file if executed
|
||||||
|
through the Cargo's formatting tool `cargo fmt`. Otherwise, the edition needs to be specified
|
||||||
If you want to format code that requires edition 2018, add the following to your config file:
|
in your config file:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
Loading…
Reference in New Issue
Block a user