doctest-file 1.1.1

Sources doctests from dedicated files into Rustdoc documentation while hiding select lines
Documentation
1
2
3
4
5
6
7
/// Adds 1 to the given number, panicking in case of overflow if overflow checks are enabled.
///
/// # Examples
/// ```
#[doc = doctest_file::include_doctest!("examples/basic/doc.rs")]
/// ```
pub fn plus_1(n: u32) -> u32 { n + 1 }