diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-05-15 19:19:08 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2025-05-15 19:19:08 +0200 |
| commit | 0bb1b5bd3b7eecd248ae709fb43826bd6f89a4ab (patch) | |
| tree | 8830102e10a6d1b6831fd6996320d28d3543778c /book/src/development/adding_lints.md | |
| parent | 303c4ecfdd0c571d80c5bc151243aee1900cebfd (diff) | |
| parent | 40bead02a528980645dda94a63b16526f9d2ffc3 (diff) | |
| download | rust-0bb1b5bd3b7eecd248ae709fb43826bd6f89a4ab.tar.gz rust-0bb1b5bd3b7eecd248ae709fb43826bd6f89a4ab.zip | |
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'book/src/development/adding_lints.md')
| -rw-r--r-- | book/src/development/adding_lints.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/book/src/development/adding_lints.md b/book/src/development/adding_lints.md index e5e82ede4fd..2b89e94cf8f 100644 --- a/book/src/development/adding_lints.md +++ b/book/src/development/adding_lints.md @@ -416,7 +416,7 @@ In our example, `is_foo_fn` looks like: fn is_foo_fn(fn_kind: FnKind<'_>) -> bool { match fn_kind { - FnKind::Fn(_, ident, ..) => { + FnKind::Fn(_, _, Fn { ident, .. }) => { // check if `fn` name is `foo` ident.name.as_str() == "foo" } |
