From 8bae897ff60ca8113de1a60962e3ec72bbd5e19d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 7 Jul 2020 09:32:16 +0200 Subject: [PATCH] ByteBuffer: actually test the doc comment code Signed-off-by: Wolfgang Bumiller --- proxmox/src/tools/byte_buffer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proxmox/src/tools/byte_buffer.rs b/proxmox/src/tools/byte_buffer.rs index 711f2df2..34064901 100644 --- a/proxmox/src/tools/byte_buffer.rs +++ b/proxmox/src/tools/byte_buffer.rs @@ -13,6 +13,7 @@ //! assert_eq!(data.len(), amount); //! Ok(data) //! } +//! # code(&mut &b"testdata"[..]).expect("byte buffer test failed"); //! ``` use std::cmp::min;