ByteBuffer: actually test the doc comment code

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-07-07 09:32:16 +02:00
parent 816015ed01
commit 8bae897ff6

View File

@ -13,6 +13,7 @@
//! assert_eq!(data.len(), amount);
//! Ok(data)
//! }
//! # code(&mut &b"testdata"[..]).expect("byte buffer test failed");
//! ```
use std::cmp::min;