Skip to content

Commit e1dac88

Browse files
committed
Auto merge of rust-lang#87119 - jyn514:rustfmt-doc-private, r=Mark-Simulacrum
Document private items for rustfmt This is possible now that rust-lang#73936 has been merged.
2 parents 64bf8df + 7769ed0 commit e1dac88

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/comment.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ fn identify_comment(
393393
}
394394

395395
/// Attributes for code blocks in rustdoc.
396-
/// See https://doc.rust-lang.org/rustdoc/print.html#attributes
396+
/// See <https://doc.rust-lang.org/rustdoc/print.html#attributes>.
397397
enum CodeBlockAttribute {
398398
Rust,
399399
Ignore,

src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ impl MacroBranch {
14171417
}
14181418
}
14191419

1420-
/// Format `lazy_static!` from https://crates.io/crates/lazy_static.
1420+
/// Format `lazy_static!` from <https://crates.io/crates/lazy_static>.
14211421
///
14221422
/// # Expected syntax
14231423
///

src/patterns.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ use crate::utils::{format_mutability, mk_sp, mk_sp_lo_plus_one, rewrite_ident};
2222
/// Returns `true` if the given pattern is "short".
2323
/// A short pattern is defined by the following grammar:
2424
///
25-
/// [small, ntp]:
25+
/// `[small, ntp]`:
2626
/// - single token
2727
/// - `&[single-line, ntp]`
2828
///
29-
/// [small]:
29+
/// `[small]`:
3030
/// - `[small, ntp]`
3131
/// - unary tuple constructor `([small, ntp])`
3232
/// - `&[small]`

0 commit comments

Comments
 (0)