oclyke / blanket-rs

static generator
https://www.blanket-rs.net
MIT License
0 stars 0 forks source link

Readme Typos in Example #15

Closed oclyke closed 8 months ago

oclyke commented 8 months ago

The example code says expext where it should say expect and the Builder::new() function should take no arguments. The fixed block is below:

fn main() {
    fn run() -> Result<(), Box<dyn std::error::Error>> {
        let mut builder = blanket::builder::Builder::new()?;
        builder.init()?;
        builder.require(blanket::resource::CopyFile("/source/index.html", "/dest/index.html"))?;
        builder.generate()?;
        Ok(())
    }
    run().expect("expected to exit successfully");
}