diff --git a/src/lib.rs b/src/lib.rs index 2a4f526..dcb6ba0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -126,13 +126,13 @@ pub fn truncate(code: &mut Vec, cfg: &Cfg) -> Result<(), Error> { /// ``` /// use minify_html::{Cfg, Error, copy}; /// -/// let mut code = b"

Hello, world!

".to_vec(); +/// let mut code: &[u8] = b"

Hello, world!

"; /// let cfg = &Cfg { /// minify_js: false, /// }; /// match copy(&code, cfg) { /// Ok(minified) => { -/// assert_eq!(code, b"

Hello, world!

".to_vec()); +/// assert_eq!(code, b"

Hello, world!

"); /// assert_eq!(minified, b"

Hello, world!".to_vec()); /// } /// Err(Error { error_type, position }) => {}