Fixed doctests that shouldn't have been compiled

This commit is contained in:
boolean_coercion 2021-02-11 13:15:06 +02:00
parent d1a627ab3b
commit 9194c11d69

View File

@ -19,12 +19,12 @@ declare_clippy_lint! {
/// ///
/// **Example:** /// **Example:**
/// ///
/// ```rust /// ```ignore
/// let input: &str = get_input(); /// let input: &str = get_input();
/// let num = u16::from_str_radix(input, 10)?; /// let num = u16::from_str_radix(input, 10)?;
/// ``` /// ```
/// Use instead: /// Use instead:
/// ```rust /// ```ignore
/// let input: &str = get_input(); /// let input: &str = get_input();
/// let num: u16 = input.parse()?; /// let num: u16 = input.parse()?;
/// ``` /// ```