diff --git a/src/comment.rs b/src/comment.rs index 83ea21b91e8..e417e29936e 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -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("/*!") { diff --git a/src/config.rs b/src/config.rs index 5e4dbefad45..8e8f4bd2f3d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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)"; diff --git a/tests/source/comment4.rs b/tests/source/comment4.rs index 7fef084fc7b..81754f93c4c 100644 --- a/tests/source/comment4.rs +++ b/tests/source/comment4.rs @@ -1,4 +1,4 @@ -// rustfmt-normalise_comments: false +// rustfmt-normalize_comments: false //! Doc comment fn test() { diff --git a/tests/target/comment4.rs b/tests/target/comment4.rs index 85edc7f06d4..c4d25ca1143 100644 --- a/tests/target/comment4.rs +++ b/tests/target/comment4.rs @@ -1,4 +1,4 @@ -// rustfmt-normalise_comments: false +// rustfmt-normalize_comments: false //! Doc comment fn test() {