From 89b966cdf1bc67e093d82e34b6341bdc9e750821 Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Sun, 10 Nov 2019 18:00:04 +0200 Subject: [PATCH] Really fix `to_digit_is_some` documentation --- clippy_lints/src/to_digit_is_some.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: /// ```