From 7769ed048414dff021720f969372d5063b7dc7ac Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Tue, 13 Jul 2021 21:09:03 -0400 Subject: Document private items for rustfmt This is possible now that rustdoc allows passing `--document-private-items` more than once. --- src/patterns.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/patterns.rs') 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]` -- cgit 1.4.1-3-g733a5