diff --git a/README.md b/README.md index a1a0007662e8..1c2dbed37a0a 100644 --- a/README.md +++ b/README.md @@ -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