summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-5238/markdown_header_wrap_comments_true.rs
blob: 87dae58eccd73c97a71c36db1c1997bc979f24cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// rustfmt-wrap_comments: true

/// no markdown header so rustfmt should wrap this comment when
/// `format_code_in_doc_comments = true` and `wrap_comments = true`
fn not_documented_with_markdown_header() {
    // This is just a normal inline comment so rustfmt should wrap this comment
    // when `wrap_comments = true`
}

/// # We're using a markdown header here so rustfmt should refuse to wrap this comment in all circumstances
fn documented_with_markdown_header() {
    // # We're using a markdown header in an inline comment. rustfmt should be
    // able to wrap this comment when `wrap_comments = true`
}