diff --git a/clippy_lints/src/to_digit_is_some.rs b/clippy_lints/src/to_digit_is_some.rs index e32abe9cf33..a40d92f3833 100644 --- a/clippy_lints/src/to_digit_is_some.rs +++ b/clippy_lints/src/to_digit_is_some.rs @@ -16,7 +16,7 @@ declare_clippy_lint! { /// ```rust /// # let c = 'c'; /// # let radix = 10; - /// let is_digit = c.to_digit(10).is_some(); + /// let is_digit = c.to_digit(radix).is_some(); /// ``` /// can be written as: /// ```