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
This commit is contained in:
bors 2020-02-02 17:48:12 +00:00
commit c6b87ef54a

View File

@ -21,10 +21,10 @@ declare_clippy_lint! {
/// ///
/// **Example:** /// **Example:**
/// ```toml /// ```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] /// [dependencies]
/// ctrlc = "3.1.0" /// ctrlc = "=3.1.0"
/// ansi_term = "0.11.0" /// ansi_term = "=0.11.0"
/// ``` /// ```
pub MULTIPLE_CRATE_VERSIONS, pub MULTIPLE_CRATE_VERSIONS,
cargo, cargo,