Merge pull request #992 from srinivasreddy/master

change  normalise spelling to American version -
This commit is contained in:
Nick Cameron 2016-05-16 10:15:29 +12:00
commit c8ba6ee5a2
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ pub fn rewrite_comment(orig: &str,
// Edge case: block comments. Let's not trim their lines (for now).
let (opener, closer, line_start) = if block_style {
("/* ", " */", " * ")
} else if !config.normalise_comments {
} else if !config.normalize_comments {
if orig.starts_with("/**") {
("/** ", " **/", " ** ")
} else if orig.starts_with("/*!") {

View File

@ -385,7 +385,7 @@ create_config! {
take_source_hints: bool, true, "Retain some formatting characteristics from the source code";
hard_tabs: bool, false, "Use tab characters for indentation, spaces for alignment";
wrap_comments: bool, false, "Break comments to fit on the line";
normalise_comments: bool, true, "Convert /* */ comments to // comments where possible";
normalize_comments: bool, true, "Convert /* */ comments to // comments where possible";
wrap_match_arms: bool, true, "Wrap multiline match arms in blocks";
match_block_trailing_comma: bool, false,
"Put a trailing comma after a block based match arm (non-block arms are not affected)";

View File

@ -1,4 +1,4 @@
// rustfmt-normalise_comments: false
// rustfmt-normalize_comments: false
//! Doc comment
fn test() {

View File

@ -1,4 +1,4 @@
// rustfmt-normalise_comments: false
// rustfmt-normalize_comments: false
//! Doc comment
fn test() {