From c528f3ad0e1abd4168b1507e8c30bc14c4a6a736 Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Wed, 17 Apr 2024 12:35:04 -0300 Subject: fix rust doc code --- rust/src/binaryview.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/binaryview.rs') 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 /// } /// } -- cgit v1.3.1