Skip to content

Commit 218da21

Browse files
ismailariliktshepang
authored andcommitted
fix(visitor.md): fix a type name in a code sample
From the context, it is understood that this type is `MyVisitor`, not `NoLandingPads`.
1 parent 24eebb6 commit 218da21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mir/visitor.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct MyVisitor<...> {
2323
and you then implement the `Visitor` or `MutVisitor` trait for that type:
2424

2525
```rust,ignore
26-
impl<'tcx> MutVisitor<'tcx> for NoLandingPads {
26+
impl<'tcx> MutVisitor<'tcx> for MyVisitor {
2727
fn visit_foo(&mut self, ...) {
2828
...
2929
self.super_foo(...);

0 commit comments

Comments
 (0)