From b7800e1ac30607d921d76dc77e5d848fd6a0c221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Fri, 1 May 2020 01:21:24 +0200 Subject: [PATCH] mismatched_target_os: link to respective section in rust reference --- clippy_lints/src/attrs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs index 6431e0d6132b..64abc9fdc717 100644 --- a/clippy_lints/src/attrs.rs +++ b/clippy_lints/src/attrs.rs @@ -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\")`"