Skip to content

Commit 5df10ea

Browse files
committed
Fix incorrect platform-specific Verifier documentation
1 parent a586af9 commit 5df10ea

File tree

1 file changed

+5
-4
lines changed
  • rustls-platform-verifier/src

1 file changed

+5
-4
lines changed

rustls-platform-verifier/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1+
#![cfg_attr(docsrs, feature(doc_cfg))]
22
#![doc = include_str!("../README.md")]
33
#![warn(missing_docs)]
44

@@ -9,9 +9,10 @@ mod verification;
99
pub use verification::Verifier;
1010

1111
// Build the Android module when generating docs so that
12-
// the Android-specific functions are included.
13-
#[cfg_attr(docsrs, cfg(any(target_os = "android", doc)))]
14-
#[cfg_attr(not(docsrs), cfg(target_os = "android"))]
12+
// the Android-specific functions are included regardless of
13+
// the host.
14+
#[cfg(any(all(doc, docsrs), target_os = "android"))]
15+
#[cfg_attr(docsrs, doc(cfg(target_os = "android")))]
1516
pub mod android;
1617

1718
#[cfg(windows)]

0 commit comments

Comments
 (0)