about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAda Alakbarova <58857108+ada4a@users.noreply.github.com>2025-05-25 02:41:29 +0200
committerGitHub <noreply@github.com>2025-05-25 02:41:29 +0200
commit6291b91cad8b85523b5d7b7bf7620b61bc416de0 (patch)
tree8df05f8b171615b1d312b0fa8632c9466e5b2876
parentb6b97a741cad25bb9cd3250544b6fe06a1ab59cd (diff)
downloadrust-6291b91cad8b85523b5d7b7bf7620b61bc416de0.tar.gz
rust-6291b91cad8b85523b5d7b7bf7620b61bc416de0.zip
docs(trait_checking): import the right function
`is_trait_method` is not even used in this codeblock, whereas `implements_trait` is used but not imported
-rw-r--r--book/src/development/trait_checking.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/book/src/development/trait_checking.md b/book/src/development/trait_checking.md
index cc4eb966f59..39ab44349b3 100644
--- a/book/src/development/trait_checking.md
+++ b/book/src/development/trait_checking.md
@@ -17,7 +17,7 @@ providing the `LateContext` (`cx`), our expression at hand, and
 the symbol of the trait in question:
 
 ```rust
-use clippy_utils::is_trait_method;
+use clippy_utils::implements_trait;
 use rustc_hir::Expr;
 use rustc_lint::{LateContext, LateLintPass};
 use rustc_span::symbol::sym;