update readme

This commit is contained in:
Edgar 2021-12-14 08:53:27 +01:00
parent 669d4ead81
commit f5f296b59e
No known key found for this signature in database
GPG key ID: 8731E6C0166EAA85

View file

@ -15,7 +15,7 @@ It uses the [quick-xml](https://github.com/tafia/quick-xml) so it should be fast
```rust
use chrono::prelude::*;
use sitewriter::*;
use sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};
let urls = vec![
UrlEntryBuilder::default()
@ -63,7 +63,7 @@ use sitewriter::*;
},
];
let result = Sitemap::generate_str(&urls).unwrap();
let result = sitewriter::generate_str(&urls);
println!("{}", result);
```