format readme better

This commit is contained in:
Edgar 2021-12-14 08:55:33 +01:00
parent f5f296b59e
commit 2203737431
No known key found for this signature in database
GPG key ID: 8731E6C0166EAA85
2 changed files with 94 additions and 94 deletions

View file

@ -17,7 +17,7 @@ It uses the [quick-xml](https://github.com/tafia/quick-xml) so it should be fast
use chrono::prelude::*;
use sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};
let urls = vec![
let urls = vec![
UrlEntryBuilder::default()
.loc("https://edgarluque.com/projects".parse().unwrap())
.build()
@ -61,10 +61,10 @@ use sitewriter::{ChangeFreq, UrlEntry, UrlEntryBuilder};
Utc.from_utc_datetime(&Local.ymd(2020, 12, 5).and_hms(12, 30, 0).naive_utc()),
),
},
];
];
let result = sitewriter::generate_str(&urls);
println!("{}", result);
let result = sitewriter::generate_str(&urls);
println!("{}", result);
```
### CREV - Rust code reviews - Raise awareness