update readme
This commit is contained in:
parent
a0ecbd59d1
commit
96ebe9dde7
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ site-icons https://github.com
|
||||||
```rust
|
```rust
|
||||||
use site_icons::Icons;
|
use site_icons::Icons;
|
||||||
|
|
||||||
let icons = Icons::new();
|
let mut icons = Icons::new();
|
||||||
// scrape the icons from a url
|
// scrape the icons from a url
|
||||||
icons.load_website("https://github.com").await?;
|
icons.load_website("https://github.com").await?;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ let entries = icons.entries().await;
|
||||||
|
|
||||||
// entries are sorted from highest to lowest resolution
|
// entries are sorted from highest to lowest resolution
|
||||||
for icon in entries {
|
for icon in entries {
|
||||||
println("{:?}", icon)
|
println!("{:?}", icon)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Reference in a new issue