From 7556dee606fe5d2e01f232813832750df02e766f Mon Sep 17 00:00:00 2001 From: salam Date: Sat, 26 Oct 2024 00:10:14 +0900 Subject: [PATCH] removed example for `BinImage` The example fails doc tests because `BinImage` is a private structure. --- src/bin_image.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/bin_image.rs b/src/bin_image.rs index 6524eda..9b2e5e1 100644 --- a/src/bin_image.rs +++ b/src/bin_image.rs @@ -19,13 +19,6 @@ impl BinImage { /// # Panics /// /// This function will panic if the length of `data` is less than `height * width`. - /// - /// # Example - /// - /// ``` - /// let raw_data = vec![0, 1, 0, 1, 0, 0, 1, 1]; // Example raw data - /// let image = BinImage::new(2, 4, &raw_data); - /// ``` pub fn new(height: u32, width: u32, data: &[u8]) -> Self { assert!( data.len() >= (height * width) as usize,