use compressed output in doc example

makes this feature more discoverable, as it's typically what users want
This commit is contained in:
connorskees 2023-01-18 02:08:12 +00:00
parent 23abe152bd
commit 3b7f4dd039

View File

@ -18,9 +18,9 @@ implementation.
fn main() -> Result<(), Box<grass::Error>> { fn main() -> Result<(), Box<grass::Error>> {
let css = grass::from_string( let css = grass::from_string(
"a { b { color: &; } }".to_owned(), "a { b { color: &; } }".to_owned(),
&grass::Options::default() &grass::Options::default().style(grass::OutputStyle::Compressed)
)?; )?;
assert_eq!(css, "a b {\n color: a b;\n}\n"); assert_eq!(css, "a b{color:a b}");
Ok(()) Ok(())
} }
``` ```