diff options
| author | bors <bors@rust-lang.org> | 2021-08-17 04:18:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-17 04:18:55 +0000 |
| commit | e1dac88cfe71ad4a6f9facf1a0dbc98da6efa746 (patch) | |
| tree | cf6b76047543530da10759132ad2c9f5a23965de | |
| parent | 64bf8dfa33f1394fa317f2fa50580fcb13f458f9 (diff) | |
| parent | 7769ed048414dff021720f969372d5063b7dc7ac (diff) | |
| download | rust-e1dac88cfe71ad4a6f9facf1a0dbc98da6efa746.tar.gz rust-e1dac88cfe71ad4a6f9facf1a0dbc98da6efa746.zip | |
Auto merge of #87119 - jyn514:rustfmt-doc-private, r=Mark-Simulacrum
Document private items for rustfmt This is possible now that https://github.com/rust-lang/rust/pull/73936 has been merged.
| -rw-r--r-- | src/comment.rs | 2 | ||||
| -rw-r--r-- | src/macros.rs | 2 | ||||
| -rw-r--r-- | src/patterns.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/comment.rs b/src/comment.rs index 0f8118a408e..58a2b5e6aec 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -393,7 +393,7 @@ fn identify_comment( } /// 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 { Rust, Ignore, diff --git a/src/macros.rs b/src/macros.rs index 6c5e32716c0..c8ee590b6cc 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -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 /// diff --git a/src/patterns.rs b/src/patterns.rs index 062e9cef9bb..0501e76d277 100644 --- a/src/patterns.rs +++ b/src/patterns.rs @@ -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". /// A short pattern is defined by the following grammar: /// -/// [small, ntp]: +/// `[small, ntp]`: /// - single token /// - `&[single-line, ntp]` /// -/// [small]: +/// `[small]`: /// - `[small, ntp]` /// - unary tuple constructor `([small, ntp])` /// - `&[small]` |
