Cleanup example code for StyleSheet::print_as_css()

This commit is contained in:
ConnorSkees 2020-02-14 14:36:16 -05:00
parent 6c97cd4755
commit f6f4eb3e15

View File

@ -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)
/// } /// }