Skip to content

Commit

Permalink
use compressed output in doc example
Browse files Browse the repository at this point in the history
makes this feature more discoverable, as it's typically what users want
  • Loading branch information
connorskees committed Jan 18, 2023
1 parent 23abe15 commit 3b7f4dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ implementation.
fn main() -> Result<(), Box<grass::Error>> {
let css = grass::from_string(
"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(())
}
```
Expand Down

0 comments on commit 3b7f4dd

Please sign in to comment.