The [Documentation testing](https://github.com/rust-lang/rust-by-example/blob/master/src/testing/doc_testing.md) page reads "Documentation comments are written in markdown". I believe it's been [replaced with CommonMark](https://doc.rust-lang.org/edition-guide/rust-2018/rustdoc/rustdoc-uses-commonmark.html) now.