mismatched_target_os: link to respective section in rust reference

This commit is contained in:
Matthias Krüger 2020-05-01 01:21:24 +02:00
parent 0a53ed2d8e
commit b7800e1ac3

View File

@ -238,6 +238,7 @@ declare_clippy_lint! {
/// #[cfg(unix)]
/// fn conditional() { }
/// ```
/// Check the [Rust Reference](https://doc.rust-lang.org/reference/conditional-compilation.html#target_os) for more details.
pub MISMATCHED_TARGET_OS,
correctness,
"usage of `cfg(operating_system)` instead of `cfg(target_os = \"operating_system\")`"