From 65b9651509e6f7430075af555bf0f3e61519ddc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Ar=C4=B1l=C4=B1k?= Date: Tue, 1 Aug 2023 10:50:50 +0300 Subject: [PATCH] fix(visitor.md): fix a type name in a code sample From the context, it is understood that this type is `MyVisitor`, not `NoLandingPads`. --- src/mir/visitor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mir/visitor.md b/src/mir/visitor.md index 17186fe75..c0c703a6b 100644 --- a/src/mir/visitor.md +++ b/src/mir/visitor.md @@ -23,7 +23,7 @@ struct MyVisitor<...> { and you then implement the `Visitor` or `MutVisitor` trait for that type: ```rust,ignore -impl<'tcx> MutVisitor<'tcx> for NoLandingPads { +impl<'tcx> MutVisitor<'tcx> for MyVisitor { fn visit_foo(&mut self, ...) { ... self.super_foo(...);