From 1c6090c440e77c7aea4dd4b3658d4730539b34af Mon Sep 17 00:00:00 2001 From: Daniel Carosone Date: Sat, 28 Jul 2018 18:04:55 +1000 Subject: [PATCH] call out edition config in Quick start (#2837) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) 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