Skip to content

Commit 7c0484d

Browse files
authored
Plugin api docs typos fix (#7751)
1 parent fe75eb5 commit 7c0484d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

python/plugin.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -647,11 +647,11 @@ def register_for_medium_level_il_function(
647647
648648
>>> def my_plugin(bv: BinaryView, func: MediumLevelILFunction):
649649
>>> log_info(f"My plugin was called on func {func} in bv `{bv}`")
650-
>>> PluginCommand.register_for_low_level_il_function("My Plugin", "My plugin description (not used)", my_plugin)
650+
>>> PluginCommand.register_for_medium_level_il_function("My Plugin", "My plugin description (not used)", my_plugin)
651651
True
652652
>>> def is_valid(bv: BinaryView, func: MediumLevelILFunction) -> bool:
653653
>>> return False
654-
>>> PluginCommand.register_for_low_level_il_function("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid)
654+
>>> PluginCommand.register_for_medium_level_il_function("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid)
655655
True
656656
657657
.. warning:: Calling ``register_for_medium_level_il_function`` with the same function name will replace the existing function but will leak the memory of the original plugin.
@@ -685,11 +685,11 @@ def register_for_medium_level_il_instruction(
685685
686686
>>> def my_plugin(bv: BinaryView, inst: MediumLevelILInstruction):
687687
>>> log_info(f"My plugin was called on inst {inst} in bv `{bv}`")
688-
>>> PluginCommand.register_for_low_level_il_instruction("My Plugin", "My plugin description (not used)", my_plugin)
688+
>>> PluginCommand.register_for_medium_level_il_instruction("My Plugin", "My plugin description (not used)", my_plugin)
689689
True
690690
>>> def is_valid(bv: BinaryView, inst: MediumLevelILInstruction) -> bool:
691691
>>> return False
692-
>>> PluginCommand.register_for_low_level_il_instruction("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid)
692+
>>> PluginCommand.register_for_medium_level_il_instruction("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid)
693693
True
694694
695695
.. warning:: Calling ``register_for_medium_level_il_instruction`` with the same function name will replace the existing function but will leak the memory of the original plugin.
@@ -724,11 +724,11 @@ def register_for_high_level_il_function(
724724
725725
>>> def my_plugin(bv: BinaryView, func: HighLevelILFunction):
726726
>>> log_info(f"My plugin was called on func {func} in bv `{bv}`")
727-
>>> PluginCommand.register_for_low_level_il_function("My Plugin", "My plugin description (not used)", my_plugin)
727+
>>> PluginCommand.register_for_high_level_il_function("My Plugin", "My plugin description (not used)", my_plugin)
728728
True
729729
>>> def is_valid(bv: BinaryView, func: HighLevelILFunction) -> bool:
730730
>>> return False
731-
>>> PluginCommand.register_for_low_level_il_function("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid)
731+
>>> PluginCommand.register_for_high_level_il_function("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid)
732732
True
733733
734734
.. warning:: Calling ``register_for_high_level_il_function`` with the same function name will replace the existing function but will leak the memory of the original plugin.
@@ -762,11 +762,11 @@ def register_for_high_level_il_instruction(
762762
763763
>>> def my_plugin(bv: BinaryView, inst: HighLevelILInstruction):
764764
>>> log_info(f"My plugin was called on inst {inst} in bv `{bv}`")
765-
>>> PluginCommand.register_for_low_level_il_instruction("My Plugin", "My plugin description (not used)", my_plugin)
765+
>>> PluginCommand.register_for_high_level_il_instruction("My Plugin", "My plugin description (not used)", my_plugin)
766766
True
767767
>>> def is_valid(bv: BinaryView, inst: HighLevelILInstruction) -> bool:
768768
>>> return False
769-
>>> PluginCommand.register_for_low_level_il_instruction("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid)
769+
>>> PluginCommand.register_for_high_level_il_instruction("My Plugin (With Valid Function)", "My plugin description (not used)", my_plugin, is_valid)
770770
True
771771
772772
.. warning:: Calling ``register_for_high_level_il_instruction`` with the same function name will replace the existing function but will leak the memory of the original plugin.

0 commit comments

Comments
 (0)