about summary refs log tree commit diff
path: root/clippy_lints/src/reference.rs
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2019-08-02 08:13:54 +0200
committerPhilipp Hansch <dev@phansch.net>2019-08-02 18:16:35 +0200
commitabfa8a952c74a409ee0d3cc80d85d90cc9de70ae (patch)
tree03e66839f2770818e1b79bad29f08198a136e757 /clippy_lints/src/reference.rs
parent18a7dce4dac18728e03668e17fb685f43954751a (diff)
downloadrust-abfa8a952c74a409ee0d3cc80d85d90cc9de70ae.tar.gz
rust-abfa8a952c74a409ee0d3cc80d85d90cc9de70ae.zip
Doctests: Fix all complexity lint docs
cc #4319
Diffstat (limited to 'clippy_lints/src/reference.rs')
-rw-r--r--clippy_lints/src/reference.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/reference.rs b/clippy_lints/src/reference.rs
index 2ee00a2f103..35e214faae8 100644
--- a/clippy_lints/src/reference.rs
+++ b/clippy_lints/src/reference.rs
@@ -15,7 +15,7 @@ declare_clippy_lint! {
     /// the suggested fix for `x = **&&y` is `x = *&y`, which is still incorrect.
     ///
     /// **Example:**
-    /// ```rust
+    /// ```rust,ignore
     /// let a = f(*&mut b);
     /// let c = *&d;
     /// ```
@@ -64,8 +64,8 @@ declare_clippy_lint! {
     /// **Example:**
     /// ```rust
     /// struct Point(u32, u32);
-    /// let point = Foo(30, 20);
-    /// let x = (&point).x;
+    /// let point = Point(30, 20);
+    /// let x = (&point).0;
     /// ```
     pub REF_IN_DEREF,
     complexity,