mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Merge pull request #2870 from dcarosone/edition-readme
call out edition config in Readme: Quick start (#2837)
This commit is contained in:
@@ -50,6 +50,12 @@ To run:
|
||||
cargo +nightly fmt
|
||||
```
|
||||
|
||||
To format code that requires edition 2018, create a `rustfmt.toml` [configuration](#configuring-rustfmt) file containing:
|
||||
|
||||
```toml
|
||||
edition = "Edition2018"
|
||||
```
|
||||
|
||||
## Limitations
|
||||
|
||||
Rustfmt tries to work on as much Rust code as possible, sometimes, the code
|
||||
|
||||
Reference in New Issue
Block a user