summaryrefslogtreecommitdiff
path: root/rust/src/binaryview.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/binaryview.rs')
-rw-r--r--rust/src/binaryview.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/binaryview.rs b/rust/src/binaryview.rs
index 70b1cab0..5a4e270b 100644
--- a/rust/src/binaryview.rs
+++ b/rust/src/binaryview.rs
@@ -1553,7 +1553,7 @@ pub type BinaryViewEventType = BNBinaryViewEventType;
///
/// # Example
///
-/// ```rust
+/// ```no_run
/// use binaryninja::binaryview::{BinaryView, BinaryViewEventHandler, BinaryViewEventType, register_binary_view_event};
///
/// struct EventHandlerContext {
@@ -1561,7 +1561,7 @@ pub type BinaryViewEventType = BNBinaryViewEventType;
/// }
///
/// impl BinaryViewEventHandler for EventHandlerContext {
-/// fn on_event(&mut self, binary_view: &BinaryView) {
+/// fn on_event(&self, binary_view: &BinaryView) {
/// // handle event
/// }
/// }