]> git.lizzy.rs Git - rust.git/commitdiff
Fix some doc errors
authorOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>
Mon, 10 Apr 2017 13:10:29 +0000 (15:10 +0200)
committerOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>
Mon, 10 Apr 2017 13:10:29 +0000 (15:10 +0200)
clippy_lints/src/format.rs

index bcbb8b1cccd2a75a275394e927ca56409f3a72a4..518ce99c4e2d3ff1ba09dbe74e6c5beef9289f46 100644 (file)
@@ -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! {[