about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorflip1995 <philipp.krones@embecosm.com>2022-01-13 13:18:19 +0100
committerflip1995 <philipp.krones@embecosm.com>2022-01-13 13:18:19 +0100
commitfb0142ae41a49a4dda6bc0c7487efa00818c8f49 (patch)
tree0b51b29d80477019cca389c9b053d0d04c8d74ee /doc
parentdda2aef64fb5b4903a28e5d4fb8d63483642cc6f (diff)
Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup
Diffstat (limited to 'doc')
-rw-r--r--doc/common_tools_writing_lints.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/common_tools_writing_lints.md b/doc/common_tools_writing_lints.md
index c7e51d53f51..207b0be1548 100644
--- a/doc/common_tools_writing_lints.md
+++ b/doc/common_tools_writing_lints.md
@@ -60,7 +60,7 @@ Two noticeable items here:
 Starting with an `expr`, you can check whether it is calling a specific method `some_method`:
 
 ```rust
-impl LateLintPass<'_> for MyStructLint {
+impl<'tcx> LateLintPass<'tcx> for MyStructLint {
     fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx hir::Expr<'_>) {
         if_chain! {
             // Check our expr is calling a method