We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
to_digit_is_some
1 parent 9aefae4 commit 89b966cCopy full SHA for 89b966c
clippy_lints/src/to_digit_is_some.rs
@@ -16,7 +16,7 @@ declare_clippy_lint! {
16
/// ```rust
17
/// # let c = 'c';
18
/// # let radix = 10;
19
- /// let is_digit = c.to_digit(10).is_some();
+ /// let is_digit = c.to_digit(radix).is_some();
20
/// ```
21
/// can be written as:
22
0 commit comments