Cleanup example code for StyleSheet::print_as_css()
This commit is contained in:
parent
6c97cd4755
commit
f6f4eb3e15
@ -286,15 +286,11 @@ impl StyleSheet {
|
|||||||
|
|
||||||
/// Write the internal representation as CSS to `buf`
|
/// Write the internal representation as CSS to `buf`
|
||||||
///
|
///
|
||||||
/// ```norun
|
/// ```
|
||||||
/// use std::io::{BufWriter, stdout};
|
/// use std::io::{BufWriter, stdout};
|
||||||
/// use grass::{SassResult, StyleSheet};
|
/// use grass::{SassResult, StyleSheet};
|
||||||
/// # use tempfile::Builder;
|
|
||||||
/// # use std::io::Write;
|
|
||||||
///
|
///
|
||||||
/// fn main() -> SassResult<()> {
|
/// fn main() -> SassResult<()> {
|
||||||
/// # let mut file = Builder::new().prefix("input.scss").tempfile().unwrap();
|
|
||||||
/// # write!(file, "a {{\n color: red}}")?;
|
|
||||||
/// let mut buf = BufWriter::new(stdout());
|
/// let mut buf = BufWriter::new(stdout());
|
||||||
/// StyleSheet::from_path("input.scss")?.print_as_css(&mut buf)
|
/// StyleSheet::from_path("input.scss")?.print_as_css(&mut buf)
|
||||||
/// }
|
/// }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user