From 8bb0a4d667a41cce80fc2d04e0ed2e47982aa2a4 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 11 Apr 2017 14:10:11 +0200 Subject: [PATCH] Fix more doc issues --- clippy_lints/src/format.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/format.rs b/clippy_lints/src/format.rs index 518ce99c4e2d..3a6a316226cb 100644 --- a/clippy_lints/src/format.rs +++ b/clippy_lints/src/format.rs @@ -98,8 +98,8 @@ pub fn get_argument_fmtstr_parts<'a, 'b>(cx: &LateContext<'a, 'b>, expr: &'a Exp } /// Checks if the expressions matches -/// ```rust -/// { static __STATIC_FMTSTR: s = &["a", "b", c]; __STATIC_FMTSTR } +/// ```rust, ignore +/// { static __STATIC_FMTSTR: &'static[&'static str] = &["a", "b", c]; __STATIC_FMTSTR } /// ``` fn check_static_str(cx: &LateContext, expr: &Expr) -> bool { if let Some(expr) = get_argument_fmtstr_parts(cx, expr) {