Skip to content

Commit b7800e1

Browse files
committed
mismatched_target_os: link to respective section in rust reference
1 parent 0a53ed2 commit b7800e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/attrs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ declare_clippy_lint! {
238238
/// #[cfg(unix)]
239239
/// fn conditional() { }
240240
/// ```
241+
/// Check the [Rust Reference](https://doc.rust-lang.org/reference/conditional-compilation.html#target_os) for more details.
241242
pub MISMATCHED_TARGET_OS,
242243
correctness,
243244
"usage of `cfg(operating_system)` instead of `cfg(target_os = \"operating_system\")`"

0 commit comments

Comments
 (0)