Fix outdated doctest
This commit is contained in:
parent
c15ebdfe42
commit
67cb46c19b
1 changed files with 2 additions and 2 deletions
|
@ -29,11 +29,11 @@ use url::Url;
|
||||||
/// # tokio_test::block_on(async {
|
/// # tokio_test::block_on(async {
|
||||||
/// use favicon_scraper::{scrape, Error};
|
/// use favicon_scraper::{scrape, Error};
|
||||||
///
|
///
|
||||||
/// let icons = scrape("https://kitsunes.dev", true).await.unwrap();
|
/// let icons = scrape("https://kitsunes.dev").await.unwrap();
|
||||||
///
|
///
|
||||||
/// // Only HTTP(S) is supported
|
/// // Only HTTP(S) is supported
|
||||||
/// assert!(matches!(
|
/// assert!(matches!(
|
||||||
/// scrape("ftp://example.com", true).await,
|
/// scrape("ftp://example.com").await,
|
||||||
/// Err(Error::UnsupportedURLScheme)
|
/// Err(Error::UnsupportedURLScheme)
|
||||||
/// ));
|
/// ));
|
||||||
/// # })
|
/// # })
|
||||||
|
|
Loading…
Add table
Reference in a new issue