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/section.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rust/src/section.rs') diff --git a/rust/src/section.rs b/rust/src/section.rs index 06d09fca..580d5a21 100644 --- a/rust/src/section.rs +++ b/rust/src/section.rs @@ -72,8 +72,11 @@ impl Section { /// You need to create a section builder, customize that section, then add it to a binary view: /// - /// ``` - /// bv.add_section(Section::new().align(4).entry_size(4)) + /// ```no_run + /// # use binaryninja::section::Section; + /// # use binaryninja::binaryview::BinaryViewExt; + /// let bv = binaryninja::load("example").unwrap(); + /// bv.add_section(Section::builder("example", 0..1024).align(4).entry_size(4)) /// ``` pub fn builder(name: S, range: Range) -> SectionBuilder { SectionBuilder::new(name, range) -- cgit v1.3.1