]> git.lizzy.rs Git - rust.git/blob - tests/target/invalid-rust-code-in-doc-comment.rs
Revert "Revert "Change config option from format_doc_comments to format_code_in_doc_c...
[rust.git] / tests / target / invalid-rust-code-in-doc-comment.rs
1 // rustfmt-format_code_in_doc_comments: true
2
3 /// ```rust
4 /// if (true) { … }
5 /// ```
6 fn a() {}
7
8 /// ```rust
9 /// if foo() {
10 ///     …
11 /// }
12 /// ```
13 fn a() {}
14
15 /// ```rust
16 /// k1 == k2 ⇒ hash(k1) == hash(k2)
17 /// ```
18 pub struct a;