diff options
| author | Philipp Hansch <dev@phansch.net> | 2019-08-02 08:13:54 +0200 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2019-08-02 18:16:35 +0200 |
| commit | abfa8a952c74a409ee0d3cc80d85d90cc9de70ae (patch) | |
| tree | 03e66839f2770818e1b79bad29f08198a136e757 /clippy_lints/src/explicit_write.rs | |
| parent | 18a7dce4dac18728e03668e17fb685f43954751a (diff) | |
| download | rust-abfa8a952c74a409ee0d3cc80d85d90cc9de70ae.tar.gz rust-abfa8a952c74a409ee0d3cc80d85d90cc9de70ae.zip | |
Doctests: Fix all complexity lint docs
cc #4319
Diffstat (limited to 'clippy_lints/src/explicit_write.rs')
| -rw-r--r-- | clippy_lints/src/explicit_write.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clippy_lints/src/explicit_write.rs b/clippy_lints/src/explicit_write.rs index dc76bb0b2b9..a2edb4855b6 100644 --- a/clippy_lints/src/explicit_write.rs +++ b/clippy_lints/src/explicit_write.rs @@ -16,8 +16,10 @@ declare_clippy_lint! { /// /// **Example:** /// ```rust + /// # use std::io::Write; + /// # let bar = "furchtbar"; /// // this would be clearer as `eprintln!("foo: {:?}", bar);` - /// writeln!(&mut io::stderr(), "foo: {:?}", bar).unwrap(); + /// writeln!(&mut std::io::stderr(), "foo: {:?}", bar).unwrap(); /// ``` pub EXPLICIT_WRITE, complexity, |
