about summary refs log tree commit diff
path: root/src/patterns.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-07-13 21:09:03 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-08-16 01:46:56 +0000
commit7769ed048414dff021720f969372d5063b7dc7ac (patch)
tree6a2cd44c271c7ff59544298974f9a645f2531a32 /src/patterns.rs
parent2323cbc2311d2b907b62d5dc58970756bfb3cbc0 (diff)
Document private items for rustfmt
This is possible now that rustdoc allows passing
`--document-private-items` more than once.
Diffstat (limited to 'src/patterns.rs')
-rw-r--r--src/patterns.rs4
1 files changed, 2 insertions, 2 deletions
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]`