Skip to content

Commit 6c831eb

Browse files
Add pub keyword before mod bar definition in doc.md
Based on the `https://doc.rust-lang.org/rustdoc/write-documentation/the-doc-attribute.html#inline-and-no_inline `, rustdoc will inline these definitions so there is no need to inline it. If we want to notice the diffrence we should make module public.
1 parent 933c339 commit 6c831eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meta/doc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Used to inline docs, instead of linking out to separate page.
8080
pub use bar::Bar;
8181
8282
/// bar docs
83-
mod bar {
83+
pub mod bar {
8484
/// the docs for Bar
8585
pub struct Bar;
8686
}

0 commit comments

Comments
 (0)