rust/tests/target/configs/doc_comment_code_block_width/100.rs
sec65 33c60740d3
Add width for codeblocks in comments (#5372)
* add doc_comment_code_block_width configuration

* updated config docu

* Updated docu and changed tests to config folder
2022-06-16 22:15:16 -05:00

17 lines
416 B
Rust

// rustfmt-format_code_in_doc_comments: true
// rustfmt-doc_comment_code_block_width: 100
/// ```rust
/// impl Test {
/// pub const fn from_bytes(v: &[u8]) -> Result<Self, ParserError> {
/// Self::from_bytes_manual_slice(v, 0, v.len())
/// }
/// }
/// ```
impl Test {
pub const fn from_bytes(v: &[u8]) -> Result<Self, ParserError> {
Self::from_bytes_manual_slice(v, 0, v.len())
}
}