Skip to content

Commit 1e27e5e

Browse files
authored
Merge pull request #372 from ehuss/rustfmt-toml
Mention both `rustfmt.toml` and `.rustfmt.toml`
2 parents 935284d + 59f32c4 commit 1e27e5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rust-2024/rustfmt-style-edition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ for both parsing and the 2024 edition of the Style Guide:
4848
rustfmt lib.rs --edition 2024
4949
```
5050

51-
The style edition can also be set in a `rustfmt.toml` configuration file:
51+
The style edition can also be set in a `rustfmt.toml` or `.rustfmt.toml` configuration file:
5252
```toml
5353
style_edition = "2024"
5454
```
@@ -73,7 +73,7 @@ Running `cargo fmt` or `rustfmt` with the 2024 edition or style edition will
7373
automatically migrate formatting over to the 2024 style edition formatting.
7474

7575
Projects who have contributors that may utilize their editor's format-on-save
76-
features are also strongly encouraged to add a `.rustfmt.toml` file to their project
76+
features are also strongly encouraged to add a `rustfmt.toml` file to their project
7777
that includes the corresponding `style_edition` utilized within their project, or to
7878
encourage their users to ensure their local editor format-on-save feature is
7979
configured to use that same `style_edition`.

0 commit comments

Comments
 (0)