make doctests pass

This commit is contained in:
ConnorSkees 2020-06-26 06:40:34 -04:00
parent 9212ff5fa1
commit 6a6be73c5f

View File

@ -134,7 +134,7 @@ fn raw_to_parse_error(map: &CodeMap, err: Error) -> Box<Error> {
/// Write CSS to `buf`, constructed from a path /// Write CSS to `buf`, constructed from a path
/// ///
/// ``` /// ```
/// fn main() -> Result<(), grass::Error> { /// fn main() -> Result<(), Box<grass::Error>> {
/// let sass = grass::from_path("input.scss")?; /// let sass = grass::from_path("input.scss")?;
/// Ok(()) /// Ok(())
/// } /// }
@ -179,7 +179,7 @@ pub fn from_path(p: &str) -> Result<String> {
/// Write CSS to `buf`, constructed from a string /// Write CSS to `buf`, constructed from a string
/// ///
/// ``` /// ```
/// fn main() -> Result<(), grass::Error> { /// fn main() -> Result<(), Box<grass::Error>> {
/// let sass = grass::from_string("a { b { color: &; } }".to_string())?; /// let sass = grass::from_string("a { b { color: &; } }".to_string())?;
/// assert_eq!(sass, "a b {\n color: a b;\n}\n"); /// assert_eq!(sass, "a b {\n color: a b;\n}\n");
/// Ok(()) /// Ok(())