update readme

This commit is contained in:
mehmetcan 2022-05-04 13:53:32 +03:00 committed by GitHub
parent a0ecbd59d1
commit 96ebe9dde7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ site-icons https://github.com
```rust
use site_icons::Icons;
let icons = Icons::new();
let mut icons = Icons::new();
// scrape the icons from a url
icons.load_website("https://github.com").await?;
@ -40,7 +40,7 @@ let entries = icons.entries().await;
// entries are sorted from highest to lowest resolution
for icon in entries {
println("{:?}", icon)
println!("{:?}", icon)
}
```