Skip to content

Commit 6291b91

Browse files
authored
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
1 parent b6b97a7 commit 6291b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/src/development/trait_checking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ providing the `LateContext` (`cx`), our expression at hand, and
1717
the symbol of the trait in question:
1818

1919
```rust
20-
use clippy_utils::is_trait_method;
20+
use clippy_utils::implements_trait;
2121
use rustc_hir::Expr;
2222
use rustc_lint::{LateContext, LateLintPass};
2323
use rustc_span::symbol::sym;

0 commit comments

Comments
 (0)