Doctests: Fix all complexity lint docs

cc #4319
This commit is contained in:
Philipp Hansch 2019-08-02 08:13:54 +02:00
parent 18a7dce4da
commit abfa8a952c
No known key found for this signature in database
GPG key ID: 82AA61CAA11397E6
33 changed files with 155 additions and 83 deletions

View file

@ -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,