README.md: update the visitor example
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 18 Jun 2023 11:18:51 +0000 (14:18 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 18 Jun 2023 11:18:51 +0000 (14:18 +0300)
README.md

index b38f8fad13deca54a44efff8e2c4cc0fba888194..aa540581aa598fcb34d91aaff4234c2213e3413e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ The example below shows how to execute some arbitrary code upon visiting an obje
     import mdis.dispatcher
     import mdis.visitor
 
-    class CustomVisitor(mdis.visitor.Visitor):
+    class CustomVisitor(mdis.visitor.ContextVisitor):
         @mdis.dispatcher.hook(int)
         @contextlib.contextmanager
         def dispatch_int(self, instance):