diff options
| -rw-r--r-- | book/src/development/trait_checking.md | 2 |
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..4349c000a76 100644 --- a/book/src/development/trait_checking.md +++ b/book/src/development/trait_checking.md @@ -25,7 +25,7 @@ use rustc_span::symbol::sym; impl LateLintPass<'_> for CheckIteratorTraitLint { fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) { let implements_iterator = cx.tcx.get_diagnostic_item(sym::Iterator).map_or(false, |id| { - implements_trait(cx, cx.typeck_results().expr_ty(arg), id, &[]) + implements_trait(cx, cx.typeck_results().expr_ty(expr), id, &[]) }); if implements_iterator { // [...] |
