rust/tests/source/invalid-rust-code-in-doc-comment.rs
xiongmao86 a956a20532 Revert "Revert "Change config option from format_doc_comments to format_code_in_doc_comments.""
This reverts commit 97d7216cd4ebce511d5707ec5dd8b7b8fe771cba.
2019-05-10 21:22:52 +08:00

21 lines
244 B
Rust

// rustfmt-format_code_in_doc_comments: true
/// ```rust
/// if (true) { … }
/// ```
fn a() {
}
/// ```rust
/// if foo() {
/// …
/// }
/// ```
fn a() {
}
/// ```rust
/// k1 == k2 ⇒ hash(k1) == hash(k2)
/// ```
pub struct a ;