Skip to content

Commit

Permalink
Add pub keyword before mod bar definition in doc.md
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
HosseinAssaran authored Dec 12, 2023
1 parent 933c339 commit 6c831eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meta/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Used to inline docs, instead of linking out to separate page.
pub use bar::Bar;
/// bar docs
mod bar {
pub mod bar {
/// the docs for Bar
pub struct Bar;
}
Expand Down

0 comments on commit 6c831eb

Please sign in to comment.