fix(visitor.md): fix a type name in a code sample

From the context, it is understood that this type is `MyVisitor`, not `NoLandingPads`.
This commit is contained in:
İsmail Arılık 2023-08-01 10:50:50 +03:00 committed by Tshepang Mbambo
parent f6c4e6529f
commit 9e0902f9d6
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ struct MyVisitor<...> {
and you then implement the `Visitor` or `MutVisitor` trait for that type: and you then implement the `Visitor` or `MutVisitor` trait for that type:
```rust,ignore ```rust,ignore
impl<'tcx> MutVisitor<'tcx> for NoLandingPads { impl<'tcx> MutVisitor<'tcx> for MyVisitor {
fn visit_foo(&mut self, ...) { fn visit_foo(&mut self, ...) {
... ...
self.super_foo(...); self.super_foo(...);