make doctests pass
This commit is contained in:
parent
9212ff5fa1
commit
6a6be73c5f
@ -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(())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user