From 03a0b18a85d7e0feffc05388845d730095b5e680 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 10 Apr 2017 15:10:29 +0200 Subject: [PATCH] Fix some doc errors --- clippy_lints/src/format.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/format.rs b/clippy_lints/src/format.rs index bcbb8b1cccd..518ce99c4e2 100644 --- a/clippy_lints/src/format.rs +++ b/clippy_lints/src/format.rs @@ -99,7 +99,7 @@ pub fn get_argument_fmtstr_parts<'a, 'b>(cx: &LateContext<'a, 'b>, expr: &'a Exp /// Checks if the expressions matches /// ```rust -/// { static __STATIC_FMTSTR: … = &["…", "…", …]; __STATIC_FMTSTR } +/// { static __STATIC_FMTSTR: s = &["a", "b", c]; __STATIC_FMTSTR } /// ``` fn check_static_str(cx: &LateContext, expr: &Expr) -> bool { if let Some(expr) = get_argument_fmtstr_parts(cx, expr) { @@ -110,10 +110,10 @@ fn check_static_str(cx: &LateContext, expr: &Expr) -> bool { } /// Checks if the expressions matches -/// ```rust +/// ```rust,ignore /// &match (&42,) { /// (__arg0,) => [::std::fmt::ArgumentV1::new(__arg0, ::std::fmt::Display::fmt)], -/// }) +/// } /// ``` fn check_arg_is_display(cx: &LateContext, expr: &Expr) -> bool { if_let_chain! {[