Skip to content

Commit

Permalink
fix(visitor.md): fix a type name in a code sample
Browse files Browse the repository at this point in the history
From the context, it is understood that this type is `MyVisitor`, not `NoLandingPads`.
  • Loading branch information
ismailarilik authored and tshepang committed Aug 1, 2023
1 parent 24eebb6 commit 218da21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mir/visitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(...);
Expand Down

0 comments on commit 218da21

Please sign in to comment.