Merge pull request #874 from kamalmarhubi/rustfmt_skip-clarification

readme: Clarify the ways of specifying rustfmt_skip
This commit is contained in:
Marcus Klaas de Vries 2016-03-17 09:32:25 +01:00
commit 4cb043112b

View File

@ -110,8 +110,8 @@ options covering different styles. File an issue, or even better, submit a PR.
* For things you do not want rustfmt to mangle, use one of
```rust
#[rustfmt_skip]
#[cfg_attr(rustfmt, rustfmt_skip)]
#[rustfmt_skip] // requires nightly and #![feature(custom_attribute)] in crate root
#[cfg_attr(rustfmt, rustfmt_skip)] // works in stable
```
* When you run rustfmt, place a file named rustfmt.toml in target file
directory or its parents to override the default settings of rustfmt.