Update the documentation of ignore (#3580)

This commit is contained in:
Seiichi Uchida 2019-05-23 09:43:43 +09:00 committed by GitHub
parent 0c05a21b3a
commit e0664662b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2325,7 +2325,8 @@ Copyright 2018 The Rust Project Developers.`, etc.:
## `ignore`
Skip formatting the specified files and directories.
Skip formatting files and directories that match the specified pattern.
The pattern format is the same as [.gitignore](https://git-scm.com/docs/gitignore#_pattern_format).
- **Default value**: format every file
- **Possible values**: See an example below
@ -2350,6 +2351,12 @@ ignore = [
]
```
If you want to ignore every file under the directory where you put your rustfmt.toml:
```toml
ignore = ["/"]
```
## `edition`
Specifies which edition is used by the parser.