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
b24d9a3b33
commit
083d71b2b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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(...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue