Improve verbosity of non_ascii_literal lint example

This commit is contained in:
BO41 2019-05-20 15:08:53 +02:00
parent fd56381015
commit 874de889dc

View file

@ -34,7 +34,11 @@ declare_clippy_lint! {
///
/// **Example:**
/// ```rust
/// let x = "Hä?"
/// let x = String::from("€");
/// ```
/// Could be written as:
/// ```rust
/// let x = String::from("\u{20ac}");
/// ```
pub NON_ASCII_LITERAL,
pedantic,