From 874de889dcc48f71bb2d5194f6d8110bcefe41d6 Mon Sep 17 00:00:00 2001 From: BO41 Date: Mon, 20 May 2019 15:08:53 +0200 Subject: [PATCH] Improve verbosity of non_ascii_literal lint example --- clippy_lints/src/unicode.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/unicode.rs b/clippy_lints/src/unicode.rs index d96596bbb..fe7b1fbc6 100644 --- a/clippy_lints/src/unicode.rs +++ b/clippy_lints/src/unicode.rs @@ -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,