Skip to content

Commit be5ffc3

Browse files
authored
Merge pull request #3444 from daxpedda/patch-1
Additional info to default value of edition.
2 parents 5f3dfe6 + cfd1811 commit be5ffc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Configurations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,9 +2358,9 @@ Specifies which edition is used by the parser.
23582358
- **Possible values**: `2015`, `2018`
23592359
- **Stable**: Yes
23602360

2361-
### Example
2362-
2363-
If you want to format code that requires edition 2018, add the following to your config file:
2361+
Rustfmt is able to pick up the edition used by reading the `Cargo.toml` file if executed
2362+
through the Cargo's formatting tool `cargo fmt`. Otherwise, the edition needs to be specified
2363+
in your config file:
23642364

23652365
```toml
23662366
edition = "2018"

0 commit comments

Comments
 (0)