rustdoc: Note why rustdoc::html::markdown is public
Almost all of the modules are crate-private, except for `rustdoc::json::types`, which I believe is intended to be for public use; and `rustdoc::html::markdown`, which is used externally by the error-index generator and so has to be public.
This commit is contained in:
@@ -2,6 +2,7 @@ crate mod escape;
|
|||||||
crate mod format;
|
crate mod format;
|
||||||
crate mod highlight;
|
crate mod highlight;
|
||||||
crate mod layout;
|
crate mod layout;
|
||||||
|
// used by the error-index generator, so it needs to be public
|
||||||
pub mod markdown;
|
pub mod markdown;
|
||||||
crate mod render;
|
crate mod render;
|
||||||
crate mod sources;
|
crate mod sources;
|
||||||
|
|||||||
@@ -83,7 +83,8 @@ mod doctree;
|
|||||||
mod error;
|
mod error;
|
||||||
mod doctest;
|
mod doctest;
|
||||||
mod fold;
|
mod fold;
|
||||||
crate mod formats;
|
mod formats;
|
||||||
|
// used by the error-index generator, so it needs to be public
|
||||||
pub mod html;
|
pub mod html;
|
||||||
mod json;
|
mod json;
|
||||||
mod markdown;
|
mod markdown;
|
||||||
|
|||||||
Reference in New Issue
Block a user