Skip to content

Commit 955bebf

Browse files
committed
[rustdoc] Additional notes on reexport chain with #[doc(hidden)]
Signed-off-by: xizheyin <[email protected]>
1 parent 2010bba commit 955bebf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/rustdoc/src/write-documentation/re-exports.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ pub mod public_mod {
7474
pub use self::public_mod::Public;
7575
```
7676

77-
If an item has `#[doc(hidden)]`, it won't be inlined (nor visible in the generated documentation):
77+
If an item has a reexport chain with `#[doc(hidden)]`,
78+
and the item has no other attributes,
79+
it won't be visible in the generated documentation:
7880

7981
```rust,ignore (inline)
8082
// This struct won't be visible.

0 commit comments

Comments
 (0)