Merge pull request #1 from mehmetcansahin/patch-1

update readme
This commit is contained in:
Sam Denty 2022-05-05 19:58:02 +01:00 committed by GitHub
commit 5599d8eb07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

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)
}
```

View file

@ -6,7 +6,7 @@
//! ```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?;
//!
@ -15,7 +15,7 @@
//!
//! // entries are sorted from highest to lowest resolution
//! for icon in entries {
//! println("{:?}", icon)
//! println!("{:?}", icon)
//! }
//! ```