diff options
Diffstat (limited to 'src/request/sync.rs')
| -rw-r--r-- | src/request/sync.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/request/sync.rs b/src/request/sync.rs index 68c8a0f..f3cd7d1 100644 --- a/src/request/sync.rs +++ b/src/request/sync.rs @@ -27,11 +27,16 @@ use crate::request::Response; /// # Example /// /// ```rust -/// match germ::request::request(&url::Url::parse("gemini://fuwn.me").unwrap()) +/// #[tokio::main] +/// async fn main() { +/// match germ::request::sync::request( +/// &url::Url::parse("gemini://fuwn.me").unwrap(), +/// ) /// .await -/// { -/// Ok(response) => println!("{:?}", response), -/// Err(_) => {} +/// { +/// Ok(response) => println!("{:?}", response), +/// Err(_) => {} +/// } /// } /// ``` /// |