about summary refs log tree commit diff
path: root/book/src/development/adding_lints.md
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-05-15 19:19:08 +0200
committerPhilipp Krones <hello@philkrones.com>2025-05-15 19:19:08 +0200
commit0bb1b5bd3b7eecd248ae709fb43826bd6f89a4ab (patch)
tree8830102e10a6d1b6831fd6996320d28d3543778c /book/src/development/adding_lints.md
parent303c4ecfdd0c571d80c5bc151243aee1900cebfd (diff)
parent40bead02a528980645dda94a63b16526f9d2ffc3 (diff)
downloadrust-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.md2
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"
         }