about summary refs log tree commit diff
path: root/clippy_lints/src/ref_patterns.rs
diff options
context:
space:
mode:
Diffstat (limited to 'clippy_lints/src/ref_patterns.rs')
-rw-r--r--clippy_lints/src/ref_patterns.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/ref_patterns.rs b/clippy_lints/src/ref_patterns.rs
index b1530eed1c1..ce4ca7b06e9 100644
--- a/clippy_lints/src/ref_patterns.rs
+++ b/clippy_lints/src/ref_patterns.rs
@@ -10,12 +10,12 @@ declare_clippy_lint! {
     /// The `ref` keyword can be confusing for people unfamiliar with it, and often
     /// it is more concise to use `&` instead.
     /// ### Example
-    /// ```rust
+    /// ```no_run
     /// let opt = Some(5);
     /// if let Some(ref foo) = opt {}
     /// ```
     /// Use instead:
-    /// ```rust
+    /// ```no_run
     /// let opt = Some(5);
     /// if let Some(foo) = &opt {}
     /// ```