diff --git a/README.md b/README.md index 30447e9..0f38ac3 100644 --- a/README.md +++ b/README.md @@ -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) } ``` diff --git a/src/lib.rs b/src/lib.rs index d6c6f45..2c84727 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) //! } //! ```