result_unit_err: Fix typo

This commit is contained in:
Yoshitomo Nakanishi 2021-03-31 11:18:48 +09:00
parent 0552852d9a
commit 45164de59f
3 changed files with 20 additions and 20 deletions

View file

@ -57,9 +57,9 @@ fn check_result_unit_err(cx: &LateContext<'_>, decl: &hir::FnDecl<'_>, item_span
cx,
RESULT_UNIT_ERR,
fn_header_span,
"this returns a `Result<_, ()>",
"this returns a `Result<_, ()>`",
None,
"use a custom Error type instead",
"use a custom `Error` type instead",
);
}
}