Skip to content

Commit

Permalink
removed example for BinImage
Browse files Browse the repository at this point in the history
The example fails doc tests because `BinImage` is a private structure.
  • Loading branch information
salam99823 committed Oct 25, 2024
1 parent f810b7c commit 7556dee
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/bin_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7556dee

Please sign in to comment.