diff options
| author | bors <bors@rust-lang.org> | 2020-02-02 17:48:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-02 17:48:12 +0000 |
| commit | c6b87ef54a9a7ee9bd4bdf3ace3e449c0734cd8e (patch) | |
| tree | 5dd8337520dc77de6dfa464f2753307525bc3544 | |
| parent | ea85b4c7fb9826f72bd4ab743a703a34c75a40f0 (diff) | |
| parent | 0f67a7ecb5822a0ec5bdb5ebad50091e20074247 (diff) | |
| download | rust-c6b87ef54a9a7ee9bd4bdf3ace3e449c0734cd8e.tar.gz rust-c6b87ef54a9a7ee9bd4bdf3ace3e449c0734cd8e.zip | |
Auto merge of #5119 - JohnTitor:tweak-doc, r=flip1995
Tweak documentation in `multiple_crate_versions` This example isn't reproducible now since `ctrlc` upgrades `winapi` to `0.3.x` in `3.1.1`. We should pin their versions to trigger lint correctly. changelog: none
| -rw-r--r-- | clippy_lints/src/multiple_crate_versions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/multiple_crate_versions.rs b/clippy_lints/src/multiple_crate_versions.rs index 0b9e46978c8..d07b21bfa99 100644 --- a/clippy_lints/src/multiple_crate_versions.rs +++ b/clippy_lints/src/multiple_crate_versions.rs @@ -21,10 +21,10 @@ declare_clippy_lint! { /// /// **Example:** /// ```toml - /// # This will pull in both winapi v0.3.4 and v0.2.8, triggering a warning. + /// # This will pull in both winapi v0.3.x and v0.2.x, triggering a warning. /// [dependencies] - /// ctrlc = "3.1.0" - /// ansi_term = "0.11.0" + /// ctrlc = "=3.1.0" + /// ansi_term = "=0.11.0" /// ``` pub MULTIPLE_CRATE_VERSIONS, cargo, |
