From 0e0f3c8c61098b25c036ede67612621b0623dd9b Mon Sep 17 00:00:00 2001 From: Kamal Marhubi Date: Thu, 17 Mar 2016 00:51:16 -0400 Subject: [PATCH] readme: Clarify the ways of specifying rustfmt_skip It was previously unclear that the `cfg_attr` version works in stable Rust. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bf6585a8576e..fbe605fb4307 100644 --- a/README.md +++ b/README.md @@ -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.