diff --git a/doc/adding_lints.md b/doc/adding_lints.md index 365564ef25d..fa165f2ea5e 100644 --- a/doc/adding_lints.md +++ b/doc/adding_lints.md @@ -214,7 +214,7 @@ fn is_foo_fn(fn_kind: FnKind<'_>) -> bool { FnKind::ItemFn(ident, ..) | FnKind::Method(ident, ..) => { return ident.name == "foo" }, - FnKind::Closure(..) => return false + FnKind::Closure(..) => false } } ```