summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/doc_comment_code_block_width/50.rs
blob: e8ab6f28bdc5ab4b88e5a617eced4492ffb4466a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// rustfmt-format_code_in_doc_comments: true
// rustfmt-doc_comment_code_block_width: 50

/// ```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())
    }
}