Skip to content

Commit 89b966c

Browse files
author
Michael Wright
committed
Really fix to_digit_is_some documentation
1 parent 9aefae4 commit 89b966c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/to_digit_is_some.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare_clippy_lint! {
1616
/// ```rust
1717
/// # let c = 'c';
1818
/// # let radix = 10;
19-
/// let is_digit = c.to_digit(10).is_some();
19+
/// let is_digit = c.to_digit(radix).is_some();
2020
/// ```
2121
/// can be written as:
2222
/// ```

0 commit comments

Comments
 (0)