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:
parent
f6c4e6529f
commit
9e0902f9d6
|
|
@ -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(...);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue