Skip to content

Commit 874de88

Browse files
author
BO41
committed
Improve verbosity of non_ascii_literal lint example
1 parent fd56381 commit 874de88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clippy_lints/src/unicode.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ declare_clippy_lint! {
3434
///
3535
/// **Example:**
3636
/// ```rust
37-
/// let x = "Hä?"
37+
/// let x = String::from("€");
38+
/// ```
39+
/// Could be written as:
40+
/// ```rust
41+
/// let x = String::from("\u{20ac}");
3842
/// ```
3943
pub NON_ASCII_LITERAL,
4044
pedantic,

0 commit comments

Comments
 (0)