https://github.com/hatoo/cargo-snippet/pull/18#issuecomment-615835448 We are printing doc attribute as `///` using text processing. #14 However, there is an option in rustfmt, [normalize_doc_attributes](https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#normalize_doc_attributes) but it's not stable. It's good to use this option when it is stabilized.