Document private items for rustfmt

This is possible now that rustdoc allows passing
`--document-private-items` more than once.
This commit is contained in:
Joshua Nelson 2021-07-13 21:09:03 -04:00
parent 2323cbc231
commit 7769ed0484
3 changed files with 4 additions and 4 deletions

View file

@ -393,7 +393,7 @@ fn identify_comment(
} }
/// Attributes for code blocks in rustdoc. /// Attributes for code blocks in rustdoc.
/// See https://doc.rust-lang.org/rustdoc/print.html#attributes /// See <https://doc.rust-lang.org/rustdoc/print.html#attributes>.
enum CodeBlockAttribute { enum CodeBlockAttribute {
Rust, Rust,
Ignore, Ignore,

View file

@ -1417,7 +1417,7 @@ impl MacroBranch {
} }
} }
/// Format `lazy_static!` from https://crates.io/crates/lazy_static. /// Format `lazy_static!` from <https://crates.io/crates/lazy_static>.
/// ///
/// # Expected syntax /// # Expected syntax
/// ///

View file

@ -22,11 +22,11 @@ use crate::utils::{format_mutability, mk_sp, mk_sp_lo_plus_one, rewrite_ident};
/// Returns `true` if the given pattern is "short". /// Returns `true` if the given pattern is "short".
/// A short pattern is defined by the following grammar: /// A short pattern is defined by the following grammar:
/// ///
/// [small, ntp]: /// `[small, ntp]`:
/// - single token /// - single token
/// - `&[single-line, ntp]` /// - `&[single-line, ntp]`
/// ///
/// [small]: /// `[small]`:
/// - `[small, ntp]` /// - `[small, ntp]`
/// - unary tuple constructor `([small, ntp])` /// - unary tuple constructor `([small, ntp])`
/// - `&[small]` /// - `&[small]`