Merge pull request #992 from srinivasreddy/master
change normalise spelling to American version -
This commit is contained in:
commit
c8ba6ee5a2
@ -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("/*!") {
|
||||
|
@ -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)";
|
||||
|
@ -1,4 +1,4 @@
|
||||
// rustfmt-normalise_comments: false
|
||||
// rustfmt-normalize_comments: false
|
||||
|
||||
//! Doc comment
|
||||
fn test() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// rustfmt-normalise_comments: false
|
||||
// rustfmt-normalize_comments: false
|
||||
|
||||
//! Doc comment
|
||||
fn test() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user