Skip to content

Commit e017539

Browse files
authored
Merge pull request #2508 from topecongiro/issue-2494
Only format code blocks in comments with rust syntax notation
2 parents 5f1dbe4 + 93d454a commit e017539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ fn rewrite_comment_inner(
395395

396396
continue;
397397
} else {
398-
inside_code_block = line.starts_with("```");
398+
inside_code_block = line.starts_with("```rust");
399399

400400
if result == opener {
401401
let force_leading_whitespace = opener == "/* " && count_newlines(orig) == 0;

0 commit comments

Comments
 (0)