Merge pull request #2508 from topecongiro/issue-2494

Only format code blocks in comments with rust syntax notation
This commit is contained in:
Nick Cameron 2018-03-08 15:29:37 +13:00 committed by GitHub
commit e01753909f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -395,7 +395,7 @@ fn rewrite_comment_inner(
continue;
} else {
inside_code_block = line.starts_with("```");
inside_code_block = line.starts_with("```rust");
if result == opener {
let force_leading_whitespace = opener == "/* " && count_newlines(orig) == 0;