Skip to content

Commit

Permalink
Tweak crate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Sep 27, 2024
1 parent ac65c94 commit 288c589
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions block-buffer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@
//! assert_eq!(padded_block, [12, 0, 0, 0]);
//! ```
//!
//! Note that block size used with buffers MUST be bigger than zero and smaller than 255.
//! Note that block size used with buffers MUST be bigger than zero and smaller than 256.
//! You will get a compilation error with an invalid block size:
//!
//! ```compile_fail
//! use block_buffer::{EagerBuffer, array::typenum::U0};
//!
//! let buf = EagerBuffer::<U0>::default();
//! ```
//! ```compile_fail
//! use block_buffer::{EagerBuffer, array::typenum::U256};
//!
//! let buf = EagerBuffer::<U256>::default();
//! ```
#![no_std]
Expand Down

0 comments on commit 288c589

Please sign in to comment.